public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Rick Lindsley <ricklind@us.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH] sard changes for 2.5.34
Date: Thu, 12 Sep 2002 00:20:22 -0700	[thread overview]
Message-ID: <3D804036.4C000672@digeo.com> (raw)
In-Reply-To: 200209120640.g8C6eTD00198@eng4.beaverton.ibm.com

Rick Lindsley wrote:
> 
>     kstat should be a lighter-weight per-cpu thing.  But the current
>     disk accounting in there would make it 12 kilobytes per CPU.
> 
>     My vote: remove the disk accounting from kernel_stat and use this.
> 
> I have a patch from another contributor that takes disk stats out of
> kstat and puts them into their own global structure.  I'll give that
> some attention.

OK, that's a start.  I think there was some work done on making
kernel_stat percpu as well.

Cleaning up and speeding up kernel_stat is a spearate exercise
of course, but as we need to change userspace we may as well roll
it all up together.

>     > What follows works, but needs refinements.  Comments welcome.
> 
>     What are those refinements?
> 
> A couple I mentioned in my message: double collection of stats, and an
> ugly hd_struct added to gendisk.  In addition, we should remove the
> restriction on which and how many disks are reported on.
> 
> Lastly, a bit of a philosophical question.  /proc/stat and (with this
> patch) /proc/diskstats provide some of the same information. Should
> 
>     a) all of it appear in /proc/stat?
> 
>     b) all of it appear in /proc/diskstats?
> 
>     c) keep the current (limited) info in /proc/stat (for backward
>        compatibility) and introduce the expanded info in
>        /proc/diskstats?
> 
> My preference is b, but I'm open to other opinions.

b).  Let's get the kernel right and change userspace to follow.  We have
another accounting patch which breaks top(1), so Rik has fixed it (and
is feeding the fixes upstream).

>     What userspace tools are available for interpreting this
>     information?
> 
> None that I'm aware of, although /proc/diskstats is formatted in a
> program-friendly way.  Sample output (warning: wide):

Does it work with the utilities at http://linux.inet.hr/?  What is the
relationship with the 2.4 sard work?  (I've never used sard, so words
of one syllable please ;))

If we can get this work playing nicely with those existing sard tools,
get the kernel_stat stuff cleaned up and get the relevant userspace
tools working and merged upstream then we have a neat bundle to submit.

  reply	other threads:[~2002-09-12  7:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12  2:10 [RFC][PATCH] sard changes for 2.5.34 Rick Lindsley
2002-09-12  2:42 ` Andrew Morton
2002-09-12  2:50   ` Rik van Riel
2002-09-12  6:40   ` Rick Lindsley
2002-09-12  7:20     ` Andrew Morton [this message]
2002-09-12  9:18       ` Rick Lindsley
2002-09-12 10:01         ` Alexander Viro
2002-09-12 10:33           ` Rick Lindsley
2002-09-12 19:42         ` Andrew Morton
2002-09-12 20:38           ` Rik van Riel
2002-09-12 16:16       ` Rik van Riel
2002-09-12 16:48         ` Andrew Morton
2002-09-12 23:32       ` Denis Vlasenko
2002-09-12 18:49         ` Andrew Morton
2002-09-12 19:50           ` Rick Lindsley
  -- strict thread matches above, loose matches on Subject: below --
2002-09-13 11:39 Dipankar Sarma
2002-09-14 18:57 Lev Makhlis
2002-09-18 17:54 ` Randy.Dunlap
2002-09-18 19:43   ` Lev Makhlis

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=3D804036.4C000672@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ricklind@us.ibm.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