From: Christoph Lameter <clameter@sgi.com>
To: Martin Peschke <mp3@de.ibm.com>
Cc: linux-kernel@vger.kernel.org, ak@suse.de, akpm@osdl.org,
alan@lxorguk.ukuu.org.uk
Subject: Re: [RFC] Light weight event counters (V2) instead of page state
Date: Tue, 13 Jun 2006 08:23:51 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0606130817460.28793@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <448EC436.6060008@de.ibm.com>
On Tue, 13 Jun 2006, Martin Peschke wrote:
> Did you consider using the statistics infrastructure available in -mm?
> (lib/statistic.c, include/linux/statistic.h, Documentation/statistics.txt)
No its not in Linus tree and has even more overhead than the existing
counters since it always checks if a certain counters is on or off and it
also does indirect calls to an update function.
It does not use local_t at all and takes an smp_processor_id() parameter
to various functions which makes the future use of cpu_local_* functions
not possible (should that implementation get fixed).
> To me that looks like a good application for the statistics infrastructure,
> which shows statistics through debugfs instead of procfs. Btw., it completely
> unburdens exploiting kernel code from the delivery of statistics to users.
The light weight counter implementation here provides the output of
/proc/vmstat. That is a fixed interface.
prev parent reply other threads:[~2006-06-13 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-12 21:21 Christoph Lameter
2006-06-13 13:57 ` Martin Peschke
2006-06-13 15:23 ` Christoph Lameter [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=Pine.LNX.4.64.0606130817460.28793@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mp3@de.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
all inboxes | Powered by JetHome®