Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761251AbYCZStU (ORCPT ); Wed, 26 Mar 2008 14:49:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756352AbYCZStM (ORCPT ); Wed, 26 Mar 2008 14:49:12 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:53507 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755497AbYCZStL (ORCPT ); Wed, 26 Mar 2008 14:49:11 -0400 Date: Wed, 26 Mar 2008 13:49:10 -0500 (CDT) From: Alan Mayer To: Pavel Machek Cc: Alan Mayer , torvalds@linux-foundation.org, mingo@elte.hu, linux-kernel list , Robin Holt , Jack Steiner , Russ Anderson Subject: Re: [PATCH] x86_64: resize NR_IRQS for large machines In-Reply-To: <20080325231034.GA3894@ucw.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1555 Lines: 56 On Wed, 26 Mar 2008, Pavel Machek wrote: > Hi! > > > Subject: [PATCH] x86_64: resize NR_IRQS for large machines > > > > From: Alan Mayer > > > > 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 > > > > Reviewed-by: Christoph Lameter > > > =================================================================== > > --- 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 @@ > > * > > */ > > > > +#if !defined(MAX_IO_APICS) > > +#include > > +#endif > > + > > This is very ugly. Why not include it unconditionally -- with guard in > apicdef.h? > Pavel Okay, I can change that. --ajm > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html > -- Alan J. Mayer SGI ajm@sgi.com WORK: 651-683-3131 HOME: 651-407-0134 -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/