linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* who writes the "disk_io:" entry in /proc/stat ?
@ 2001-09-18 10:18 Tim Sullivan
  2001-09-18 19:02 ` Daniel Kobras
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Sullivan @ 2001-09-18 10:18 UTC (permalink / raw)
  To: Kernel Mailing List


Hello,

does anyone know off the top of their head which piece
of code writes the "disk_io:" entry in /proc/stat ?

I've been trying to make some sense of this entry without
much success and have so far been unsuccessful at locating
the source.

TIA
	-tim


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: who writes the "disk_io:" entry in /proc/stat ?
  2001-09-18 10:18 who writes the "disk_io:" entry in /proc/stat ? Tim Sullivan
@ 2001-09-18 19:02 ` Daniel Kobras
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kobras @ 2001-09-18 19:02 UTC (permalink / raw)
  To: Tim Sullivan; +Cc: Kernel Mailing List

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-18 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-18 10:18 who writes the "disk_io:" entry in /proc/stat ? Tim Sullivan
2001-09-18 19:02 ` Daniel Kobras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).