From owner-cvs-all Tue Jun 19 17:53:56 2001 Delivered-To: cvs-all@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 152A137B403; Tue, 19 Jun 2001 17:53:49 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 983C06ACC0; Wed, 20 Jun 2001 10:23:45 +0930 (CST) Date: Wed, 20 Jun 2001 10:23:45 +0930 From: Greg Lehey To: "Kenneth D. Merry" Cc: Jens Schweikhardt , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vmstat vmstat.c Message-ID: <20010620102345.G86129@wantadilla.lemis.com> References: <200106191759.f5JHxiF54249@freefall.freebsd.org> <20010620084727.K58585@wantadilla.lemis.com> <20010619173009.A35037@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010619173009.A35037@panzer.kdm.org>; from ken@kdm.org on Tue, Jun 19, 2001 at 05:30:09PM -0600 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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 Tuesday, 19 June 2001 at 17:30:09 -0600, Kenneth D. Merry wrote: > 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 Ah, thanks! You wouldn't have understood that from the man page. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message