Subject: Re: systat vmstat disk widths
To: David Brownlee <abs@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-misc
Date: 08/08/2002 09:43:37
On Tue, Aug 06, 2002 at 11:35:30AM +0100, David Brownlee wrote:
> Currently 'systat vmstat' displays disk information in
> columns 5 wide, with titles 4 wide. This clips the instance
> number from raid devices, and causes numbers to run into
> each other:
>
> Discs wd0 wd1 cd0 fd0 md0 raid raid 64 fmin
> seeks 85 ftarg
> xfers 177 179 35 3 itarg
> Kbyte1132811385 568 103 470 wired
> %busy 99.6 99.4 16.1 pdfre
I wonder if some sort of scaling (like top) would work. For example:
Discs wd0 wd1 cd0 fd0 md0 raid raid 64 fmin
seeks 85 ftarg
xfers 177 179 35 3 itarg
Kbyte 11M 11M 568 103 470 wired
%busy 99.6 99.4 16.1 pdfre
Other things that come to mind are auto-scaling the widths of the
columns based on the number of disk devices, and perhaps some heuristic
to weed out devices that aren't really used (cd0, fd0 and md0 in your
example).
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Development, Support and Service: http://www.wasabisystems.com/