linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zach Brown <zab@osdlab.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.7-pre3 kernel_stat -> cpu_stat[NR_CPUS]
Date: Fri, 6 Jul 2001 10:48:58 -0700	[thread overview]
Message-ID: <20010706104858.A20375@osdlab.org> (raw)

This patch does the following:

- creates a cacheline aligned/padded struct cpu_stat[NR_CPUS].  
- moves the [NR_CPUS] members of kernel_stat into cpu_stat

This moves the stat data that a cpu will update into a contiguous region.
Previous users of kernel_stat would compete for an array's cacheline
with other cpus.

- creates /proc/cpu/[0-9]+/ and fs/proc/proc_cpu.c with code for managing
  files in the cpu's directories.

This should be useful for rusty's */active and arjan/rmk's */frequency.
I have no strong feelings about where this lives or what it should be
named.

- adds collection of fault statistics and adds 'context migration'
  recording, per cpu.
- updates users of kernel_stat in proc, reports shouldn't change
- updates every friggin' user of kstat.irqs[] in arch/ with a macro so
  that we never have to do this again.

The patch is rather large, due to that last bit.  It can be found at

	http://www.osdlab.org/sw_resources/cpustat/cpustat-2.4.7.pre3-1.diff

with a tool for summarizing /proc/cpu/*/stat at:

	http://www.osdlab.org/sw_resources/cpustat/index.shtml

I'd like to get this sent to Linus soon, but wanted to run the
/proc/cpu/* stuff by l-k one last time.

- z

                 reply	other threads:[~2001-07-06 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20010706104858.A20375@osdlab.org \
    --to=zab@osdlab.org \
    --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).