[Sugar-devel] OT: determining memory usage of short-lived processes
tomeu at sugarlabs.org
Mon Jun 8 05:29:56 EDT 2009
On Sun, Jun 7, 2009 at 12:26, Sascha
Silbe<sascha-ml-ui-sugar-devel at silbe.org> wrote:
> On Sun, Jun 07, 2009 at 12:28:58AM +0200, Martin Langhoff wrote:
>> 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).
I guess root access is for estimating the shared mem footprint of your
app. Perhaps the private mem part is enough for you?
>> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> -----END PGP SIGNATURE-----
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel