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

From: Daniel Kobras (kobras@tat.physik.uni-tuebingen.de)
Date: Tue Sep 18 2001 - 14:02:28 EST


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/



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:27 EST