lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectQuery about process address space
From
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


\
 
 \ /
  Last update: 2009-10-07 21:19    [W:0.020 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site