From: Pavel Machek <pavel@ucw.cz>
To: Alan Mayer <ajm@sgi.com>
Cc: torvalds@linux-foundation.org, mingo@elte.hu,
linux-kernel list <linux-kernel@vger.kernel.org>,
Robin Holt <holt@sgi.com>, Jack Steiner <steiner@sgi.com>,
Russ Anderson <rja@sgi.com>
Subject: Re: [PATCH] x86_64: resize NR_IRQS for large machines
Date: Wed, 26 Mar 2008 00:10:35 +0100 [thread overview]
Message-ID: <20080325231034.GA3894@ucw.cz> (raw)
In-Reply-To: <Pine.SGI.3.96.1080324092858.7873204S-100000@fergus.americas.sgi.com>
Hi!
> Subject: [PATCH] x86_64: resize NR_IRQS for large machines
>
> From: Alan Mayer <ajm@sgi.com>
>
> On machines with very large numbers of cpus, tables that are dimensioned
> by NR_IRQS get very large, especially the irq_desc table. They are also
> very sparsely used. When the cpu count is > MAX_IO_APICS, use MAX_IO_APICS
> to set NR_IRQS, otherwise use NR_CPUS.
>
> Signed-off-by: Alan Mayer <ajm@sgi.com>
>
> Reviewed-by: Christoph Lameter <clameter@sgi.com>
> ===================================================================
> --- v2.6.25-rc6.orig/include/asm-x86/irq_64.h 2008-03-19 16:52:52.000000000 -0500
> +++ v2.6.25-rc6/include/asm-x86/irq_64.h 2008-03-20 16:46:51.000000000 -0500
> @@ -10,6 +10,10 @@
> * <tomsoft@informatik.tu-chemnitz.de>
> */
>
> +#if !defined(MAX_IO_APICS)
> +#include <asm/apicdef.h>
> +#endif
> +
This is very ugly. Why not include it unconditionally -- with guard in
apicdef.h?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2008-03-26 16:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 14:31 Alan Mayer
2008-03-25 16:19 ` Ingo Molnar
2008-03-25 16:24 ` Alan Mayer
2008-03-25 23:10 ` Pavel Machek [this message]
2008-03-26 16:29 ` Linus Torvalds
2008-03-26 18:55 ` Alan Mayer
2008-04-12 20:12 ` Eric W. Biederman
2008-03-26 18:49 ` Alan Mayer
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=20080325231034.GA3894@ucw.cz \
--to=pavel@ucw.cz \
--cc=ajm@sgi.com \
--cc=holt@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rja@sgi.com \
--cc=steiner@sgi.com \
--cc=torvalds@linux-foundation.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®