Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2008 15:54:12 +0100
From:      Ed Schouten <ed@fxq.nl>
To:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Cc:        hackers@freebsd.org
Subject:   Re: vmstat layout
Message-ID:  <20080201145412.GF67081@hoeg.nl>
In-Reply-To: <86k5lovrwj.fsf@ds4.des.no>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
* Dag-Erling Smørgrav <des@des.no> wrote:
> vmstat(1) tries very hard to fit everything in 80 columns.
> 
> Unfortunately, it's been years since anyone had a machine where none of
> the columns overflowed.
> 
> The recent addition of -h helps with the avm and fre columns, but on a
> busy system (e.g. a Varnish server on a busy web site), pretty much
> every single column will overflow.  If you have disks with names longer
> than three letters, even the two header lines will be misaligned!
> 
> Here's an example from a mostly idle machine:
> 
>  procs      memory      page                    disks                     faults         cpu
>  r b w     avm    fre   flt  re  pi  po    fr  sr ad0 ad1 ad2 ad3 ad10 ad12   in   sy   cs us sy id
>  2 1 0    193M  1015M   444   2   8   0  4862   0   0   0   0   0   0   0  348 1297 4704  1  7 92
> 
> Removing columns is not an acceptable solution (it would break too many
> existing scripts), so I'm afraid we're going to have to make the output
> wider than 80 columns, unless someone can come up with a better solution.

What about flipping the rows and columns? That will also give us more
space to add better descriptions.

-- 
 Ed Schouten <ed@fxq.nl>
 WWW: http://g-rave.nl/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEARECAAYFAkejMpMACgkQ52SDGA2eCwVUWwCdFsRA66G+/2/xhvkIjvCfkp4V
orgAn2KrvjrviPu/UO0IvqzQH9c26rxN
=cSGN
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080201145412.GF67081>