Hi,
The proc file system on RedHat 6.0 based linux
system provides information about memory maps of a process. For example if
process id is 639, I can do:
cat /proc/639/maps
to get a list of all memory maps of a process.
What we are finding is that the code segment of a
process is not shared. All the pages are marked private. For example if I run a
process "abc" and start another copy of it, one would expect the read only code
segment to be shared in physical RAM. But all statistics on the RedHat 6.0 Linux
based system, point to the fact that the code segment is loaded twice for each
process. The same thing seems to be true for shared libraries's code segment.
This is making the RedHat 6.0 Linux system very expensive as an embedded
system.
Has anyone else come across the same problem? Is
there a kernel or linker patch I need to get it fixed.
Thanks
Pawan
[EMAIL PROTECTED]
|
- Re: Linux memory map question? Pawan Singh
- Re: Linux memory map question? Jeffrey B. Siegal
- Re: Linux memory map question? Erik Andersen
- Linux and shared memory Pawan Singh
- RE: Linux memory map question? Pawan Singh
- Re: Linux memory map question? Jeffrey B. Siegal