linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Satchell <list@satchell.net>
To: Dominik Kubla <dominik@kubla.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Swap performance statistics in 2.6 -- which /proc file has it?
Date: Tue, 09 Dec 2003 17:28:51 -0800	[thread overview]
Message-ID: <1071019731.8045.31.camel@ssatchell1.pyramid.net> (raw)
In-Reply-To: <3FD62845.8090301@kubla.de>

On Tue, 2003-12-09 at 11:53, Dominik Kubla wrote:
> Richard B. Johnson wrote:
> > If you need statistics v.s. time, you need to write an application
> > that samples things at some fixed interval. In a previous life,
> > I requested that "nr_free_pages()" be accessible from user-space,
> > probably via /proc. That's all you need. Maybe that could be
> > added now?  In any event, samping free pages at some fixed-time
> > interval should give you all the information you need.
> 
> vmstat -a
> sar -B
> sar -r
> 
> O'Reilly's "System Performance Tuning" might make for an interesting read,
> especially pages 110ff (also its Linux informations are a bit out of date).

How does sampling free pages give you an accurate measurement of swap
activity?  If I look at the free-page count at one-minute intervals, the
system can, and WILL, inhale and exhale pages at a frightening clip, and
there is no way I can see that sampling free-page count in a
low-overhead way will do the trick.

How does vmstat disk-swap activity?  Looking at the source for vmstat in
procps-2.0.11 I see how they do it for 2.4 kernels, but the part for 2.5
kernels doesn't seem to try to pick up swap statistics at all -- because
there are none to get?

(signed) Puzzled.

(Why does this whole discussion remind me of the Firesign Theatre album
_I Think We're All Bozos On This Bus_, and the question that Ah Clem
asked:  "Why does the porridge-bird lay his eggs in the air?")


  parent reply	other threads:[~2003-12-10  1:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BF1FE1855350A0479097B3A0D2A80EE00184D619@hdsmsx402.hd.intel.com>
2003-12-08 19:29 ` balance interrupts Len Brown
2003-12-08 20:00   ` Julien Oster
2003-12-08 20:02     ` Julien Oster
2003-12-08 21:46     ` Len Brown
2003-12-09  3:51   ` Bob
2003-12-09  5:11     ` Stephen Satchell
2003-12-09 13:19     ` Swap performance statistics in 2.6 -- which /proc file has it? Stephen Satchell
2003-12-09 13:56       ` Richard B. Johnson
2003-12-09 14:46         ` Stephen Satchell
2003-12-09 15:25           ` Richard B. Johnson
2003-12-09 19:53             ` Dominik Kubla
2003-12-09 20:24               ` Richard B. Johnson
2003-12-10 10:18                 ` Dominik Kubla
2003-12-10  1:28               ` Stephen Satchell [this message]
2003-12-10 10:34                 ` Dominik Kubla
2003-12-10 13:06                   ` Answer to Swap performance statistics in 2.6 -- which /proc file has it Stephen Satchell

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=1071019731.8045.31.camel@ssatchell1.pyramid.net \
    --to=list@satchell.net \
    --cc=dominik@kubla.de \
    --cc=linux-kernel@vger.kernel.org \
    /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).