Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbYKNAPd (ORCPT ); Thu, 13 Nov 2008 19:15:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751374AbYKNAPT (ORCPT ); Thu, 13 Nov 2008 19:15:19 -0500 Received: from relay1.sgi.com ([192.48.179.29]:50845 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751807AbYKNAPR (ORCPT ); Thu, 13 Nov 2008 19:15:17 -0500 Message-ID: <491CC310.3050807@sgi.com> Date: Thu, 13 Nov 2008 16:15:12 -0800 From: Mike Travis User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: David Miller CC: paulus@samba.org, akpm@linux-foundation.org, yinghai@kernel.org, mingo@elte.hu, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sparse_irq aka dyn_irq v13 References: <18716.42977.127816.205211@cargo.ozlabs.ibm.com> <20081113.142343.225648934.davem@davemloft.net> <491CB421.2020701@sgi.com> <20081113.151435.146617325.davem@davemloft.net> In-Reply-To: <20081113.151435.146617325.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2396 Lines: 62 David Miller wrote: > From: Mike Travis > Date: Thu, 13 Nov 2008 15:11:29 -0800 > >> David Miller wrote: >>> From: Paul Mackerras >>> Date: Fri, 14 Nov 2008 09:19:13 +1100 >>> >>>> Andrew Morton writes: >>>> >>>>> Other architectures want (or have) sparse interrupts. Are those guys >>>>> paying attention here? >>>> On powerpc we have a mapping from virtual irq numbers (in the range 0 >>>> to NR_IRQS-1) to physical irq numbers (which can be anything) and back >>>> again. I think our approach is simpler than what's being proposed >>>> here, though we don't try to keep the irqdescs node-local as this >>>> patch seems to (fortunately our big systems aren't so NUMA-ish as to >>>> make that necessary). >>> This is exactly what sparc64 does as well, same as powerpc, and >>> as Paul said it's so much incredibly simpler than the dyn_irq stuff. >> One problem is that pre-defining a static NR_IRQ count is almost always >> wrong when the NR_CPUS count is large, and should be adjusted as resources >> require. > > We use a value of 256 and I've been booting linux on 128 cpu sparc64 > systems with lots of PCI-E host controllers (and others have booted it > on even larger ones). All of which have several NUMA domains. > > It's not an issue. Are you saying that having a fixed count of IRQ's is not an issue? With NR_CPUS=4096 what would you fix it to? (Currently it's NR_CPUS * 32 but that might not be sufficient.) Would NR_CPUS=16384 make it an issue? > >> Large UV systems will take a performance hit from off-node accesses >> when the CPU count (or more likely the NODE count) reaches some >> threshold. So keeping as much interrupt context close to the >> interrupting source is a good thing. > > Just because the same piece of information is repeated over and > over again doesn't mean it really matters. Which information is repeated over and over? I was under the impression that each and every interrupt writes to the irq_desc entry for that irq? If this is in a big list on node 0, that is data passing over the system bus. Or am I missing what you're getting at? Thanks, Mike -- 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/