public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: linux-kernel@vger.kernel.org, balbir@in.ibm.com,
	csturtiv@sgi.com, daw@sgi.com, guillaume.thouvenin@bull.net,
	jlan@sgi.com, nagar@watson.ibm.com, tee@sgi.com
Subject: Re: [patch 01/13] io-accounting: core statistics
Date: Fri, 8 Dec 2006 11:47:45 -0800	[thread overview]
Message-ID: <20061208114745.1acd856f.akpm@osdl.org> (raw)
In-Reply-To: <457954BF.7040707@cosmosbay.com>

On Fri, 08 Dec 2006 13:04:15 +0100
Eric Dumazet <dada1@cosmosbay.com> wrote:

> akpm@osdl.org a écrit :
> > From: Andrew Morton <akpm@osdl.org>
> > 
> > The present per-task IO accounting isn't very useful.  It simply counts the
> > number of bytes passed into read() and write().  So if a process reads 1MB
> > from an already-cached file, it is accused of having performed 1MB of I/O,
> > which is wrong.
> 
> Any chance we can report some io accounting values in getresource()/wait4()... 
> too ?

That sounds logical.

> # /usr/bin/time find /usr -name 'foo'
> 0.24user 0.22system 0:00.70elapsed 66%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (0major+222minor)pagefaults 0swaps

But where?  ri_inblock and ru_outblock seem to be count-of-operations, not
number-of-bytes.


      reply	other threads:[~2006-12-08 19:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-08 11:52 [patch 01/13] io-accounting: core statistics akpm
2006-12-08 12:04 ` Eric Dumazet
2006-12-08 19:47   ` Andrew Morton [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=20061208114745.1acd856f.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=balbir@in.ibm.com \
    --cc=csturtiv@sgi.com \
    --cc=dada1@cosmosbay.com \
    --cc=daw@sgi.com \
    --cc=guillaume.thouvenin@bull.net \
    --cc=jlan@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nagar@watson.ibm.com \
    --cc=tee@sgi.com \
    /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