lkml.org 
[lkml]   [1999]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH] Extended disk statistics.
Hi.

The attached patch against 2.3.10 (applies fine up to 2.3.11pre5, haven't
checked pre6 yet) adds two ioctl()s BLKSSTAT and BLKGSTAT that provide
disk i/o statistics per (minor) block device. It's an extension of the
basic accounting already exported via /proc/stat. In order to use it, you
have to turn on CONFIG_BLK_EXT_STATS and furthermore issue an approriate
BLKSSTAT-ioctl() on each device you want to account for. See the comments
on top of drivers/block/diskstat.c for details.

Comments?

Daniel.

P.S.: Patches against 2.2.10 and 2.2.10-ac* can be found on
http://www.tuebingen.linux.de/kobras/kernel/
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.356 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site