Re: [PATCH] Add rusage reporting to procstat

2013-01-15 Thread John Baldwin
On Monday, January 14, 2013 5:44:42 pm Konstantin Belousov wrote: > On Mon, Jan 14, 2013 at 04:39:17PM -0500, John Baldwin wrote: > > This patch adds a new -r flag to dump the resource usage information (what you > > would get from getrusage() or wait()) for a given process. Sample output: > >

Re: [PATCH] Add rusage reporting to procstat

2013-01-15 Thread Slawa Olhovchenkov
On Tue, Jan 15, 2013 at 01:49:01PM +, 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

Re: [PATCH] Add rusage reporting to procstat

2013-01-15 Thread Slawa Olhovchenkov
On Mon, Jan 14, 2013 at 04:39:17PM -0500, John Baldwin wrote: > This patch adds a new -r flag to dump the resource usage information (what > you > would get from getrusage() or wait()) for a given process. Sample output: > > % procstat -r $$ > PID COMM TYPE

Re: [PATCH] Add rusage reporting to procstat

2013-01-14 Thread Konstantin Belousov
On Mon, Jan 14, 2013 at 04:39:17PM -0500, John Baldwin wrote: > This patch adds a new -r flag to dump the resource usage information (what > you > would get from getrusage() or wait()) for a given process. Sample output: > > % procstat -r $$ > PID COMM TYPE

[PATCH] Add rusage reporting to procstat

2013-01-14 Thread John Baldwin
This patch adds a new -r flag to dump the resource usage information (what you would get from getrusage() or wait()) for a given process. Sample output: % procstat -r $$ PID COMM TYPE VALUE 1428 tcsh user time 00