[ale] where is /sys/block/hdc/stat defined?

Joe Steele joe at madewell.com
Thu May 19 17:27:29 EDT 2005


On Thu, 19 May 2005, Greg Freemyer wrote:

> I'm experimenting with a SuSE 9.2 boot CD, and I'm trying to determine
> the disk i/o rate.  I would normally use iostat -d for this, but
> iostat is not part of the boot CD.
> 
> With the SuSE 2.6.9 kernel I can see what may be interesting numbers
> in  /sys/block/hdc/stat.
> 
> I think that total sectors read/written etc. since boot may be sitting
> there in one of the numerous fields, but I don't know.
> 
> If is, so a could look at this file(?) 100 seconds apart, /divide the
> difference in sectors by 100 and have a pretty good idea of i/o rate.
> 
> Anybody know whats in /sys/block/hdc/stat?  Or know a different way to
> get i/o rates?
> 
 
The info you seek can be found in the kernel source under
Documentation/iostats.txt:

http://lxr.linux.no/source/Documentation/iostats.txt

--Joe




More information about the Ale mailing list