Title: RE: Linux memory map question?

Thanks, but I am not seeing the same behaviour. When I start multiple copies of the same process e.g. "HelloWorld" program which links with libc, one would think that code segment will be shared physically for the program and "libc". There will be extra data in each process from writable data segment in libc. But if you look at the /proc/meminfo, the memory goes down much more than one would expect.

RSS (resident set size) of a process is the total number of physical pages for a process. So when I start a copy of the process, one would think that RSS for second process will be much smaller than the first one because of all the code is physically shared. But it does not seem to be true on Linux. Do a "ps" to confirm it.

Thanks
Pawan
[EMAIL PROTECTED]



-----Original Message-----
From: Jeffrey B. Siegal [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 9:17 AM
To: Pawan Singh
Cc: [EMAIL PROTECTED]
Subject: Re: Linux memory map question?


Private means copy-on-write (as opposed to truly shared, like an mmaped
file).  The pages are physically shared unless a process modifies them.

Reply via email to