iostat

Miquel van Smoorenburg (miquels@cistron.nl)
4 Dec 1997 14:40:54 +0100


Is anyone implementing the statistics a tool like "iostat" needs? I just
made a simplistic version in perl, but all statistics the current kernel
gives are absolute # of read/writes and # of blocks read/written.

Additionally only the stats for the first 4 disks are kept, but there's
no way to find out what those 4 disks are (by a program).

SunOS keeps there stats:

disk name of the disk
r/s reads per second
w/s writes per second
Kr/s kilobytes read per second
Kw/s kilobytes written per second
wait average number of transactions waiting for ser-
vice (queue length)
actv average number of transactions actively being
serviced (removed from the queue but not yet
completed)
svc_t average service time, in milliseconds
%w percent of time there are transactions waiting
for service (queue non-empty)
%b percent of time the disk is busy (transactions
in progress)

Perhaps we need a /proc/iostat (and /proc/vmstat .. )

If noone is already working on this, I might give it a try (as soon as my
home PC gets fixed, that is ..)

Mike.

-- 
 Miquel van Smoorenburg |  Studying to be a technomage   <*>
    miquels@cistron.nl  | "May you live in interesting times"