mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hayawardh V <hayawardh@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Ashwin Chaugule <ashwin.chaugule@gmail.com>
Subject: Query about process address space
Date: Wed, 7 Oct 2009 15:10:33 -0400	[thread overview]
Message-ID: <68f1f87c0910071210l7d13ae3cueed7a7f24c669e35@mail.gmail.com> (raw)

Hi,

generally the text segment of the program gets mapped into the virtual
address starting at
0x8048000 ....

but in the case of certain programs like sshd, apache, postgres, when
I examine the proc/pid/maps, I get that the program is mapped higher
in memory (ie) in the mmap space.
eg: cat /proc/sshd/maps

...
b7fd2000-b7fd3000 r--p 0001a000 08:01 5144607    /lib/ld-2.8.90.so
b7fd3000-b7fd4000 rw-p 0001b000 08:01 5144607    /lib/ld-2.8.90.so
b7fd4000-b8038000 r-xp 00000000 08:01 656219     /usr/sbin/sshd
b8039000-b803a000 r--p 00064000 08:01 656219     /usr/sbin/sshd
b803a000-b803b000 rw-p 00065000 08:01 656219     /usr/sbin/sshd
b803b000-b8040000 rw-p 00000000 00:00 0
b8779000-b87be000 rw-p 00000000 00:00 0          [heap]
bfeed000-bff02000 rw-p 00000000 00:00 0          [stack]

(on linux-2.6.30)

This seems to be the mmap space. Why do programs mmap themselves in
higher memory? Or is there some other reason and is this not the mmap space?

Thanks,
Hayawardh

                 reply	other threads:[~2009-10-07 19:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=68f1f87c0910071210l7d13ae3cueed7a7f24c669e35@mail.gmail.com \
    --to=hayawardh@gmail.com \
    --cc=ashwin.chaugule@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®