Re: /proc/stat and disk_io

From: Daniel Kobras (
Date: Sun Dec 09 2001 - 13:05:57 EST

On Sun, Dec 09, 2001 at 04:19:45PM -0000, James Stevenson wrote:
> 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.

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.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:15 EST