[PATCH] harddrive statistics in 2.3.99pre8+

From: Felix Braun (fbraun@atdot.org)
Date: Tue May 30 2000 - 08:52:48 EST


Hi there,

the format of /proc/stat has changed since 2.3.99pre8. Is there a good
reason why we don't export the total number of disk IOs any longer even
though that figure is still being updated in drivers/block/ll_rw_blk.c? In
case there isn't this patch re-introduces it.

Bye
Felix
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

--- v2.3.99-pre9/linux/fs/proc/proc_misc.c Sat May 13 09:24:09 2000
+++ linux/fs/proc/proc_misc.c Fri May 26 20:17:12 2000
@@ -325,14 +325,14 @@
 
         for (major = 0; major < DK_MAX_MAJOR; major++) {
                 for (disk = 0; disk < DK_MAX_DISK; disk++) {
- int active = kstat.dk_drive_rio[major][disk] +
+ int active = kstat.dk_drive[major][disk] +
                                 kstat.dk_drive_rblk[major][disk] +
- kstat.dk_drive_wio[major][disk] +
                                 kstat.dk_drive_wblk[major][disk];
                         if (active)
                                 len += sprintf(page + len,
- "(%u,%u):(%u,%u,%u,%u) ",
+ "(%u,%u):(%u,%u,%u,%u,%u) ",
                                         major, disk,
+ kstat.dk_drive[major][disk],
                                         kstat.dk_drive_rio[major][disk],
                                         kstat.dk_drive_rblk[major][disk],
                                         kstat.dk_drive_wio[major][disk],

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:24 EST