Subject: Re: nore on disk stats
To: None <thorpej@nas.nasa.gov>
From: Mike Hibler <mike@fast.cs.utah.edu>
List: tech-kern
Date: 11/10/1995 12:54:34
> To: Michael Galassi <nerd@percy.rain.com>
> Subject: Re: nore on disk stats
> From: Jason Thorpe <thorpej@nas.nasa.gov>
> Date: Fri, 10 Nov 1995 11:00:24 -0800
>
> ...
> In any case, for the sake of simplicity, I'm counting bytes, caclulated
> by (bp->b_bcount - bp->b_resid). This value is passed to disk_unbusy(),
> and the counter incremented. The kernel will not do any transfer rate
> calculations. Rather, it will keep a running total of bytes and busy
> time, and a user-land program that wants to know the average transfer
> rate can easily calculate it in whichever units are most meaningful at
> the time.
>
You should put in a block size field anyway even if you don't use it right
now. If you want to work with bytes, just set the blocksize to 1 to be
consistent.