Disk statistics since boot?

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Feb 2 11:09:18 PST 2005


In message <20050202111738.GA91357 at shagged.org>, Chris Elsworth writes:
>Hello,
>
>I'm sure there must be a way to do this, but I'm having a good deal of
>trouble finding it.
>
>I'd like to be able to see how many transactions have been done and
>how many bytes have been read/written to a given disk since boot. The
>closest I can seem to get is iostat -dI, but that doesn't separate the
>values out into read and write.
>
>I haven't tried snmpd with UCD-DISKIO-MIB yet, but I'd rather not have
>to use that to get the values.
>
>Is this possible, or is it something that might make it into future
>versions of geom classes?

the info is all there, look at the gstat source code and modify
as necessary.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-geom mailing list