[Sugar-devel] OT: determining memory usage of short-lived processes

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Sun Jun 7 06:26:37 EDT 2009


On Sun, Jun 07, 2009 at 12:28:58AM +0200, Martin Langhoff wrote:

[ps_mem.py]
> Perhaps you knew it already -- it's a good tool worthy of promotion 
> so...
Got to know it only recently and it's indeed very useful, even though it 
requires root access (for obvious reasons).

> Run the whole thing under /usr/bin/time, which is different from the
> shell's 'time' built-in.
Interesting, always thought they have the same output. Thanks for the 
tip!

> The report is actually about the pagefaults, which for relatively 
> short runs relate almost linearly to mem usage.
But doesn't it include non-RAM pagefaults (i.e. mmap()ed files) as well?
It's a shame that Linux doesn't support most of the interesting fields 
(only utime, stime, minflt, majflt, nvcsw and nivcsw according to 
getrusage(2)). Even the proc files used by ps_mem.py are empty (in 
zombie state).

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090607/21023010/attachment.pgp 


More information about the Sugar-devel mailing list