Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 18:00:57 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        David Chisnall <theraven@theravensnest.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: [PATCH] Add rusage reporting to procstat
Message-ID:  <20130115140057.GA67643@zxy.spb.ru>
In-Reply-To: <8815BAF7-3B4C-4EBD-A332-AF58BE644DDF@theravensnest.org>
References:  <201301141639.17783.jhb@freebsd.org> <20130115134735.GA7708@zxy.spb.ru> <8815BAF7-3B4C-4EBD-A332-AF58BE644DDF@theravensnest.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130115140057.GA67643>