From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 13:43:00 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00F6FE5D; Tue, 15 Jan 2013 13:42:59 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id AB67B903; Tue, 15 Jan 2013 13:42:59 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Tv6rX-00027W-HD; Tue, 15 Jan 2013 17:47:35 +0400 Date: Tue, 15 Jan 2013 17:47:35 +0400 From: Slawa Olhovchenkov To: John Baldwin Subject: Re: [PATCH] Add rusage reporting to procstat Message-ID: <20130115134735.GA7708@zxy.spb.ru> References: <201301141639.17783.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201301141639.17783.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 13:43:00 -0000 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 VALUE > 1428 tcsh user time 00:00:00.050182 > 1428 tcsh system time 00:00:00.040145 > 1428 tcsh maximum RSS 3328 B maximum RSS -- 3328 _bytes_? You kidding. > 1428 tcsh integral shared memory 2844 B > 1428 tcsh integral unshared data 6372 B > 1428 tcsh integral unshared stack 1152 B > 1428 tcsh page reclaims 1306 > 1428 tcsh page faults 12 > 1428 tcsh swaps 0 > 1428 tcsh block reads 50 > 1428 tcsh block writes 0 > 1428 tcsh messages sent 172 > 1428 tcsh messages received 0 > 1428 tcsh signals received 33 > 1428 tcsh voluntary context switches 1167 > 1428 tcsh involuntary context switches 1 > > http://www.FreeBSD.org/~jhb/patches/procstat_rusage.patch > > Any thoughts, etc.? > > -- > John Baldwin > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"