> 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.
Later,
Kenn
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!