hooks for iostat type of data

Jared Mauch (jared@puck.nether.net)
Mon, 7 Apr 1997 18:12:05 -0400 (EDT)


Are there the hooks in the kernel to write an "iostat" program
similar to the *BSD's and Solaris, SunOS, etc's?

It'd be nice to determine which disks are how busy.

Here's an example:

newsxfer:~> iostat -l 20 -D 2
fd0 sd0 sd1 sd2 sd3
rps wps util rps wps util rps wps util rps wps util rps wps util
0 0 0.0 10 8 24.1 16 17 47.9 6 6 15.5 6 6 18.7
0 0 0.0 15 1 28.1 44 13 95.6 12 6 33.4 0 1 2.3
0 0 0.0 4 1 8.5 44 16 96.7 9 11 25.6 1 0 2.9
0 0 0.0 10 1 18.3 38 25 96.2 15 4 28.0 4 1 6.3
0 0 0.0 17 5 32.7 45 16 100.0 8 9 24.6 1 3 8.5
0 0 0.0 15 10 29.6 40 19 98.6 12 11 29.1 3 2 7.8

This tells me that my sd1 disk is very busy, and I need to shuffle
some of the work it's doing off to another drive, such as sd3 or sd2,
which has much less utilization.

The hooks in /proc/stat look like they're for vmstat to
give the bi/bo stats, but give nothing in a per disk format, so I
can't tell if it's one specific disk causing problems.

Thanks.

- jared

-- 
The X Window System will henceforth be known as the NC-17 Window System.
--
Jared Mauch - CICNet - jared@cic.net - http://www.cic.net/ - visit my personal
page at http://puck.nether.net/~jared/
PGP DATA: bits/keyID 768/8FB07FA5 1996/01/23 <jared@puck.nether.net>
Key fingerprint =  61 90 2E DD 7A 7E 80 F2  55 C7 48 23 10 CE 2C A7