All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Big reserved mappings on x86_64
Date: Wed, 25 Apr 2007 04:49:31 -0400	[thread overview]
Message-ID: <20070425084931.GC355@devserv.devel.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0704251035480.19711@yvahk01.tjqt.qr>

On Wed, Apr 25, 2007 at 10:42:20AM +0200, Jan Engelhardt wrote:
> I actually took a look at `pmap $$`, which reveals that a lot of shared 
> libraries map 2044K or 2048K unreadable-unwritable-private 
> mappings...for _what_ purpose?
> 
> 10:37 opteron:~ > pmap $$
> 4403: bash
> START       SIZE     RSS   DIRTY PERM MAPPING
> 2ae6cca70000    212K    172K      0K r-xp /lib64/libreadline.so.5.2
> 2ae6ccaa5000   2044K      0K      0K ---p /lib64/libreadline.so.5.2 <--
> 2ae6ccca4000      4K      4K      4K r--p /lib64/libreadline.so.5.2
> 2ae6ccca5000     28K     28K     28K rw-p /lib64/libreadline.so.5.2
> 2ae6cccac000      8K      8K      8K rw-p [anon]
> 2ae6cccae000     28K     16K      0K r-xp /lib64/libhistory.so.5.2
> 2ae6cccb5000   2048K      0K      0K ---p /lib64/libhistory.so.5.2 <--
> 2ae6cceb5000      8K      8K      8K rw-p /lib64/libhistory.so.5.2
> 2ae6cceb7000    320K    208K      0K r-xp /lib64/libncurses.so.5.5
> 2ae6ccf07000   2048K      0K      0K ---p /lib64/libncurses.so.5.5 <--
> 2ae6cd107000     48K     48K     48K r--p /lib64/libncurses.so.5.5
> 2ae6cd113000     28K     28K     28K rw-p /lib64/libncurses.so.5.5
> [...]
> 
> What could these ominous mappings be? Does anyone else see that - 
> perhaps someone with x86_64 && !(opensuse 10.2)?

While i386 only supports 4KB pages, x86_64 ELF objects ought to support
up to 2MB pages.  The gap between read-only/executable and writable segments
is intentionally mapped PROT_NONE, so that other things aren't mapped in
between the segments.

	Jakub

  reply	other threads:[~2007-04-25  8:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25  8:42 Big reserved mappings on x86_64 Jan Engelhardt
2007-04-25  8:49 ` Jakub Jelinek [this message]
2007-04-25  9:30   ` Eric Dumazet
2007-04-25  9:59     ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070425084931.GC355@devserv.devel.redhat.com \
    --to=jakub@redhat.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.