Re: who writes the "disk_io:" entry in /proc/stat ?

Daniel Kobras (kobras@tat.physik.uni-tuebingen.de)
Tue, 18 Sep 2001 21:02:28 +0200


On Tue, Sep 18, 2001 at 04:18:32AM -0600, Tim Sullivan wrote:
> does anyone know off the top of their head which piece
> of code writes the "disk_io:" entry in /proc/stat ?

drive_stat_acct() in drivers/block/ll_rw_blk.c gathers the data,
kstat_read_proc() in fs/proc/proc_misc.c implements the output routine.

Format is (device major, disk index):(sum of all io requests,
sum of read io requests, sum of blocks read, sum of write io requests,
sum of blocks written)

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