From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Wed 17 May 2000 - 12:22:40 IST
> BTW when looking at this I noticed something interesting - when I
> add up all
> the %MEM fields that top displays I get 191.7 - I presume that's the
> kernel's memory overcommit coming into effect :-)
Probably more due to shared memory. All the code in shared
libraries and executables is only loaded once into RAM
and shared between processes. So if you have two bash processes
each looks like this (numbers are fictional):
Process 1: code = 1000k data = 200k
Process 2: code = 1000k data = 300k
In top, these will show up with RSS values of 1.2M and 1.3M.
So, if you total these, you naively assume that they take
up 2.5MB of RAM, even though they only take up 1.5M because
the code portions are shared.
> The memory used by Star Office (summing the RSS fields from top) is 77M
> which is somewhat more than the actual physical memory used. So,
> let's give
> Star Office a break on the memory usage front, OK.
I'd imagine the the Star Office programs share quite a bit
of code, meaning that they actually total to less than 77M.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:11 GMT