Re: Failing to understand getrusage()

2006-03-13 Thread Kostik Belousov
On Sat, Mar 11, 2006 at 01:49:50AM +0300, Yar Tikhiy wrote: > On Tue, Mar 07, 2006 at 06:12:59PM +0200, Kostik Belousov wrote: > > > > It may be desirable to add ru_maxrss sampling at the calcru time too. > > Something like this: > > > > Index: sys/kern/kern_resource.c > > ===

Re: Failing to understand getrusage()

2006-03-10 Thread Yar Tikhiy
On Tue, Mar 07, 2006 at 06:12:59PM +0200, Kostik Belousov wrote: > On Tue, Mar 07, 2006 at 06:06:31PM +0300, Yar Tikhiy wrote: > > On Tue, Mar 07, 2006 at 12:11:56PM +0200, Kostik Belousov wrote: > > > On Tue, Mar 07, 2006 at 02:15:56AM +0300, Yar Tikhiy wrote: > > > > > > > > Personally, I'd like

Re: Failing to understand getrusage()

2006-03-07 Thread Kostik Belousov
On Tue, Mar 07, 2006 at 06:06:31PM +0300, Yar Tikhiy wrote: > On Tue, Mar 07, 2006 at 12:11:56PM +0200, Kostik Belousov wrote: > > On Tue, Mar 07, 2006 at 02:15:56AM +0300, Yar Tikhiy wrote: > > > > > > Personally, I'd like to say a "me too". /me too fails to see why > > > in a quiet, idle system

Re: Failing to understand getrusage()

2006-03-07 Thread Yar Tikhiy
On Tue, Mar 07, 2006 at 12:11:56PM +0200, Kostik Belousov wrote: > On Tue, Mar 07, 2006 at 02:15:56AM +0300, Yar Tikhiy wrote: > > > > Personally, I'd like to say a "me too". /me too fails to see why > > in a quiet, idle system ru_maxrss is very unpredictable over numerous > > runs of the test pr

Re: Failing to understand getrusage()

2006-03-07 Thread Kostik Belousov
On Tue, Mar 07, 2006 at 02:15:56AM +0300, Yar Tikhiy wrote: > On Thu, Mar 02, 2006 at 11:50:29PM +, Nick Barnes wrote: > > At 2006-03-02 22:24:17+, Nik Clayton writes: > > > I'm failing to understand how getrusage() works, which is a bit > > > perplexing, > > > because it doesn't seem like

Re: Failing to understand getrusage()

2006-03-06 Thread Yar Tikhiy
On Thu, Mar 02, 2006 at 11:50:29PM +, Nick Barnes wrote: > At 2006-03-02 22:24:17+, Nik Clayton writes: > > I'm failing to understand how getrusage() works, which is a bit perplexing, > > because it doesn't seem like it would be terribly complicated. > > ru_maxrss is the maximum resident s

Re: Failing to understand getrusage()

2006-03-02 Thread Nick Barnes
At 2006-03-02 22:24:17+, Nik Clayton writes: > I'm failing to understand how getrusage() works, which is a bit perplexing, > because it doesn't seem like it would be terribly complicated. ru_maxrss is the maximum resident set size, not the heap size. malloc(big) doesn't grow the resident set.

Failing to understand getrusage()

2006-03-02 Thread Nik Clayton
I'm failing to understand how getrusage() works, which is a bit perplexing, because it doesn't seem like it would be terribly complicated. I've attached the code. My aim is to verify that I can use getrusage() to do (admittedly crude) instrumentation of which functions in my program are allocati