Date: Tue, 19 Jun 2001 17:30:09 -0600 From: "Kenneth D. Merry" <ken@kdm.org> To: Greg Lehey <grog@FreeBSD.org> Cc: Jens Schweikhardt <schweikh@FreeBSD.org>, 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> In-Reply-To: <20010620084727.K58585@wantadilla.lemis.com>; from grog@FreeBSD.org on Wed, Jun 20, 2001 at 08:47:28AM %2B0930 References: <200106191759.f5JHxiF54249@freefall.freebsd.org> <20010620084727.K58585@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010619173009.A35037>
