linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Kobras <kobras@tat.physik.uni-tuebingen.de>
To: Tim Sullivan <tsullivan@datawest.net>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: who writes the "disk_io:" entry in /proc/stat ?
Date: Tue, 18 Sep 2001 21:02:28 +0200	[thread overview]
Message-ID: <20010918210228.B629@pelks01.extern.uni-tuebingen.de> (raw)
In-Reply-To: <1000808313.1781.1.camel@prostock.ecom-tech.com>
In-Reply-To: <1000808313.1781.1.camel@prostock.ecom-tech.com>; from tsullivan@datawest.net on Tue, Sep 18, 2001 at 04:18:32AM -0600

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.

      reply	other threads:[~2001-09-18 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-18 10:18 who writes the "disk_io:" entry in /proc/stat ? Tim Sullivan
2001-09-18 19:02 ` Daniel Kobras [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010918210228.B629@pelks01.extern.uni-tuebingen.de \
    --to=kobras@tat.physik.uni-tuebingen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tsullivan@datawest.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).