From: Andrew Morton <akpm@digeo.com>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: alan@lxorguk.ukuu.org.uk, davidm@hpl.hp.com,
linux-kernel@vger.kernel.org
Subject: Re: proc_misc.c bug
Date: Thu, 10 Apr 2003 22:28:00 -0700 [thread overview]
Message-ID: <20030410222800.6afa25ae.akpm@digeo.com> (raw)
In-Reply-To: <32880.4.64.197.106.1050037303.squirrel@webmail.osdl.org>
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
> Maybe the reason to modify it is that NR_CPUS is not a good
> approximation/hint/clue.
NR_CPUS is not tooooo bad an approximation. After all, the output size is
approximately proportional to the number of CPUs.
Multiplied by the number of interrupts :(
CPU0 CPU1
0: 11982656 0 IO-APIC-edge timer
1: 26 0 IO-APIC-edge i8042
2: 0 0 XT-PIC cascade
We could perhaps just convert it to num_online_cpus() and run away. Depends
how heoric you're feeling.
next prev parent reply other threads:[~2003-04-11 5:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-10 22:02 David Mosberger
2003-04-10 21:44 ` Alan Cox
2003-04-10 22:49 ` Randy.Dunlap
2003-04-11 5:01 ` Randy.Dunlap
2003-04-11 5:28 ` Andrew Morton [this message]
2003-04-11 5:41 ` David Mosberger
2003-04-11 5:46 ` Zwane Mwaikambo
2003-04-11 17:29 ` Randy.Dunlap
2003-04-11 18:32 ` David Mosberger
2003-04-10 22:53 ` Andrew Morton
2003-04-11 0:27 ` David Mosberger
2003-04-10 22:18 ` Andrew Morton
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=20030410222800.6afa25ae.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davidm@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.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
all inboxes | Powered by JetHome®