Re: iostats broken for devices with major number > DK_MAX_DISK (16)

From: Rick Lindsley (
Date: Tue Nov 12 2002 - 18:41:43 EST

    sorry for the intrusion. I noticed iostats didn't display statistics for
    devices on Mylex RAID constrollers. Det statistics are completely
    missing in /proc/stat. The reason seems to be an assumption that disks
    have major numbers which are below 16
    ( which is
    used by
    Devices on Mylex-controllers have major number 48. Would it break
    anything if DK_MAX_MAJOR if set higher (e.g. 64)?
    AFAIK this goes for both 2.4 and the 2.5 series.

Which kernel did you observe it on?

In 2.4, yes, you're right. Without patches, there's a limit. Patches do
exist that remove those limits though.

In >= 2.5.47, no. They've been completely removed from /proc/stat and
appear in sysfs. And there are no major device number limits.

For various other flavors of 2.5 and assorted patches, the answer is
"well maybe, kind of" depending on where you got your 2.5 from and
what patches you may have applied on top of that.

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 : Fri Nov 15 2002 - 22:00:27 EST