Subject: Re: nore on disk stats
To: None <>
From: Mike Hibler <>
List: tech-kern
Date: 11/10/1995 12:54:34
> To: Michael Galassi <>
> Subject: Re: nore on disk stats 
> From: Jason Thorpe <>
> 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