As many/most of you should know, the Linux/UNIX "ps" command is
*EXTREMELY* misleading on accounting for *ACTUAL* ram in use by a
process.  For example, it does not account for register windows being
used by the X server, nor sharing among processes that use the same
shared library.

Attached is a note from Tridge, pointing to a script that does a much
better job accounting to real usage.

Note that the Linux kernel has recently started doing a better job
accounting for memory usage as well (after 2.6.23-rc8-mm1).
                       - Jim
-- 
Jim Gettys <[EMAIL PROTECTED]>
One Laptop Per Child
--- Begin Message ---
Hi Jim,

I mentioned a memory usage script that tries to work out total memory
for a program (taking into account shared pages).

Here is a link:

  http://www.pixelbeat.org/scripts/ps_mem.py

There are other versions available, but as the above is in python I
thought you'd like it :-)

Cheers, Tridge

--- End Message ---
_______________________________________________
Devel mailing list
[email protected]
http://lists.laptop.org/listinfo/devel

Reply via email to