Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168666 - sys-process/time: Monitoring memory usage does not work
Summary: sys-process/time: Monitoring memory usage does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 00:23 UTC by Christian Schlotter
Modified: 2007-02-28 15:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schlotter 2007-02-28 00:23:24 UTC
Hi!

GNU Time has the advantage of being able to monitor more than just execution times.  However, if I try to monitor the maximum memory used by some program, it always shows that as zero.

Example:
$ /usr/bin/time --format="maxmem %MkB" thunderbird
No running windows found
maxmem 0kB

Best regards
Christian
Comment 1 SpanKY gentoo-dev 2007-02-28 14:57:33 UTC
prob best if you try reporting to these guys:
http://directory.fsf.org/time.html
Comment 2 Christian Schlotter 2007-02-28 15:41:14 UTC
OK, I took a look at the code and -- most importantly -- at the getrusage manpage:
"Not all fields are meaningful under Linux.  In linux 2.4 only the fields  ru_utime, ru_stime, ru_minflt, and ru_majflt are maintained.  Since Linux 2.6, ru_nvcsw and ru_nivcsw are also maintained"

%M would require the ru_maxrss field to be maintained.  Resolving this bug as invalid.