Re: /proc/stat and disk_io

Rene Rebe (rene.rebe@gmx.net)
Sun, 9 Dec 2001 19:04:45 +0100


On Sun, 9 Dec 2001 16:19:45 -0000
"James Stevenson" <mistral@stev.org> wrote:

> Hi
>
> >from /proc/stat i get the following
>
> disk_io: (3,0):(167751,94458,3917566,73293,2420568)
> (3,1):(59314,45093,2747844,14221,114376)
> (11,0):(9855,9855,1258392,0,0)
>
> except the device 11,0 is a cd-reader
> and there is a device 11,1 which has been used
> is there any reson why the stats dont show up ?
> after all it is another disk.

Linux definetly broken in this area! Linux (2.4) does not report other
any devices over either major 16 or minor 16. e.g. no /dev/hdb or /dev/hdd.

For my 4 IDE disk (on two different controllers) I only get:

disk_io: (3,0):(355075,157636,1744492,197439,2633848)

...

I'm thinking about fixing this on my onw using this patch as base:

http://www.swanson.uklinux.net/patch-diskio-2.4.16-1

> thanks
> James
>
>
> --------------------------
> Mobile: +44 07779080838
> http://www.stev.org
> 4:10pm up 1 day, 17:44, 2 users, load average: 0.08, 0.08, 0.02

k33p h4ck1n6
René

-- 
René Rebe (Registered Linux user: #248718 <http://counter.li.org>)

eMail: rene.rebe@gmx.net rene@rocklinux.org

Homepage: http://www.tfh-berlin.de/~s712059/index.html

Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/