Re: [PATCH] Add rusage reporting to procstat

From: Slawa Olhovchenkov <slw_at_zxy.spb.ru>
Date: Tue, 15 Jan 2013 18:00:57 +0400
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.
Received on Tue Jan 15 2013 - 12:56:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC