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.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to