[PATCH] Add rusage reporting to procstat
Slawa Olhovchenkov
slw at zxy.spb.ru
Tue Jan 15 13:56:20 UTC 2013
On Tue, Jan 15, 2013 at 01:49:01PM +0000, David Chisnall wrote:
> On 15 Jan 2013, at 13:47, Slawa Olhovchenkov wrote:
>
> > maximum RSS -- 3328 _bytes_? You kidding.
>
> I think this is a bug in our getrusage. I've seen similar (<4KB)
> things in a program that mmap()s 12KB of input, allocates a load of
> heap memory for metadata, uses a bunch of stack, and then exits.
> I find it is quite odd that the figure isn't a multiple of the page
> size, because the resident set can't be anything other than an
> integer number of pages..
man getrusage
ru_maxrss the maximum resident set size utilized (in kilobytes).
Dimensions of the other fields may be also wrong.
More information about the freebsd-current
mailing list