From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ms-smtp-04.nyroc.rr.com (ms-smtp-04.nyroc.rr.com [24.24.2.58]) by ozlabs.org (Postfix) with ESMTP id 9D187679FC for ; Sun, 16 Apr 2006 06:17:11 +1000 (EST) Date: Sat, 15 Apr 2006 16:17:01 -0400 (EDT) From: Steven Rostedt To: Nick Piggin Subject: Re: [PATCH 00/05] robust per_cpu allocation for modules In-Reply-To: <4440855A.7040203@yahoo.com.au> Message-ID: References: <1145049535.1336.128.camel@localhost.localdomain> <4440855A.7040203@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Andrew Morton , linux-mips@linux-mips.org, David Mosberger-Tang , linux-ia64@vger.kernel.org, Martin Mares , spyro@f2s.com, Joe Taylor , Andi Kleen , linuxppc-dev@ozlabs.org, paulus@samba.org, benedict.gaster@superh.com, bjornw@axis.com, Ingo Molnar , grundler@parisc-linux.org, starvik@axis.com, Linus Torvalds , Thomas Gleixner , rth@twiddle.net, Chris Zankel , tony.luck@intel.com, LKML , ralf@linux-mips.org, Marc Gauthier , lethal@linux-sh.org, schwidefsky@de.ibm.com, linux390@de.ibm.com, davem@davemloft.net, parisc-linux@parisc-linux.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 15 Apr 2006, Nick Piggin wrote: > Steven Rostedt wrote: > > > would now create a variable called per_cpu_offset__myint in > > the .data.percpu_offset section. This variable will point to the (if > > defined in the kernel) __per_cpu_offset[] array. If this was a module > > variable, it would point to the module per_cpu_offset[] array which is > > created when the modules is loaded. > > If I'm following you correctly, this adds another dependent load > to a per-CPU data access, and from memory that isn't node-affine. > > If so, I think people with SMP and NUMA kernels would care more > about performance and scalability than the few k of memory this > saves. It's not just about saving memory, but also to make it more robust. But that's another story. Since both the offset array, and the variables are mainly read only (only written on boot up), added the fact that the added variables are in their own section. Couldn't something be done to help pre load this in a local cache, or something similar? I understand SMP issues pretty well, but NUMA is still somewhat foreign to me. -- Steve