/proc/stat and disk_io
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.
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
Quoted 4 lines · On Sun, 9 Dec 2001 16:19:45 -0000 "James Stevenson" <[email protected]> wrote:
Hi
Quoted 1 line
from
/proc/stati get the following
Quoted 8 lines
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
Quoted 8 lines
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é
Signature · 10 lines
René Rebe (Registered Linux user: #248718 <http://counter.li.org>) eMail: [email protected] [email protected] 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.
Quoted 10 lines · James Stevenson
from
/proc/stati 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.
Both cdroms are accounted, but only into the same slot (11,0). In function disk_index() at the end of include/linux/genhd.h, you can add a line
case SCSI_CDROM_MAJOR:
above the line containing SCSI_DISK0_MAJOR, and things will work as expected. Several more complete patches have been floating around for a while.
Regards,
Daniel.