From owner-cvs-all Tue Jun 19 16:30:18 2001 Delivered-To: cvs-all@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id ED2E537B401; Tue, 19 Jun 2001 16:30:10 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id RAA35066; Tue, 19 Jun 2001 17:30:10 -0600 (MDT) (envelope-from ken) Date: Tue, 19 Jun 2001 17:30:09 -0600 From: "Kenneth D. Merry" To: Greg Lehey Cc: Jens Schweikhardt , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vmstat vmstat.c Message-ID: <20010619173009.A35037@panzer.kdm.org> References: <200106191759.f5JHxiF54249@freefall.freebsd.org> <20010620084727.K58585@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010620084727.K58585@wantadilla.lemis.com>; from grog@FreeBSD.org on Wed, Jun 20, 2001 at 08:47:28AM +0930 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jun 20, 2001 at 08:47:28 +0930, Greg Lehey wrote: > On Tuesday, 19 June 2001 at 10:59:43 -0700, Jens Schweikhardt wrote: > > schweikh 2001/06/19 10:59:43 PDT > > > > Modified files: > > usr.bin/vmstat vmstat.c > > Log: > > Made all fields in default output be space separated. Run-together > > columns confuse the heck out of other apps trying to parse vmstat output > > (eg sscope). > > Excellent! > > > I made sure we're still <= 80 cols per line. > > Can you be sure of that under all circumstances? > > It seems to me that the vmstat format is somewhat obsolete. Obviously > we need to maintain compatibility for the sake of existing scripts, > but they don't care about 80 character maxima (I hope). How about > thinking about how to make the output more configurable? The same > applies to iostat, where it would be nice to be able to specify > specific devices to monitor, rather than just classes of devices. You can specify which devices you want to look at with both iostat and vmstat: {panzer:/usr/home/ken:64:130} iostat -d da0 da1 1 da0 da1 KB/t tps MB/s KB/t tps MB/s 0.00 0 0.00 0.00 0 0.00 10.89 18 0.19 30.00 2 0.06 0.00 0 0.00 0.00 0 0.00 6.00 5 0.03 0.00 0 0.00 ^C {panzer:/usr/home/ken:68:130} vmstat da0 1 procs memory page disk faults cpu r b w avm fre flt re pi po fr sr da0 in sy cs us sy id 2 0 0 22108 9124 15 0 0 0 15 8 0 248 136 17 1 1 98 0 0 0 21292 9104 40 3 1 0 0 0 0 247 131 12 3 2 95 0 0 0 21292 9104 6 0 0 0 0 0 12 270 103 11 3 1 96 Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message