Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761753AbZDAUNP (ORCPT ); Wed, 1 Apr 2009 16:13:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756684AbZDAUM6 (ORCPT ); Wed, 1 Apr 2009 16:12:58 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:41097 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756209AbZDAUM5 (ORCPT ); Wed, 1 Apr 2009 16:12:57 -0400 Date: Wed, 1 Apr 2009 14:12:37 -0600 From: Matthew Wilcox To: Linus Torvalds Cc: Ingo Molnar , Christoph Lameter , Tejun Heo , Martin Schwidefsky , rusty@rustcorp.com.au, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, Paul Mundt , rmk@arm.linux.org.uk, starvik@axis.com, ralf@linux-mips.org, davem@davemloft.net, cooloney@kernel.org, kyle@mcmartin.ca, grundler@parisc-linux.org, takata@linux-m32r.org, benh@kernel.crashing.org, rth@twiddle.net, ink@jurassic.park.msu.ru, heiko.carstens@de.ibm.com, Nick Piggin , Peter Zijlstra Subject: Re: [PATCH UPDATED] percpu: use dynamic percpu allocator as the default percpu allocator Message-ID: <20090401201236.GK8014@parisc-linux.org> References: <49D099F0.3000807@kernel.org> <20090330114938.GB10070@elte.hu> <49D2B209.9060000@kernel.org> <20090401154913.GA31435@elte.hu> <20090401190113.GA734@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1097 Lines: 23 On Wed, Apr 01, 2009 at 12:39:46PM -0700, Linus Torvalds wrote: > The thing is, things like "read_mostly" or "access_rarely" may talk about > how we access those individual variables, but you're missing a _huge_ > chunk of the puzzle if you ignore the _correlations_ of those accesses > with accesses to other variables. > > The thign is, if you have variables 'a' and 'b', and they are always > accessed together, then it's probably worth it to put them in the same > cacheline. If you've got two global variables that are generally accessed together, they should probably be `annotated' as such by putting them in a struct. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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/