From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754560Ab0JUFzL (ORCPT ); Thu, 21 Oct 2010 01:55:11 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37054 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754194Ab0JUFzJ (ORCPT ); Thu, 21 Oct 2010 01:55:09 -0400 Message-ID: <4CBFD5A6.3060308@zytor.com> Date: Wed, 20 Oct 2010 22:54:46 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4 MIME-Version: 1.0 To: Eric Dumazet CC: Shaohua Li , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "tglx@linutronix.de" , "hpa@linux.intel.com" Subject: Re: [tip:x86/mm] percpu: Introduce a read-mostly percpu API References: <1287544022.4571.7.camel@sli10-conroe.sh.intel.com> <20101021013833.GA21863@sli10-conroe.sh.intel.com> <1287639230.2545.117.camel@edumazet-laptop> In-Reply-To: <1287639230.2545.117.camel@edumazet-laptop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/20/2010 10:33 PM, Eric Dumazet wrote: > > Really, readmostly percpu variables dont need INTERNODE_CACHE_SHIFT, as > this is read mostly, and per cpu vars ;) > > Just use L1_CACHE_BYTES > L1_CACHE_BYTES is completely pointless, since if there is sharing to worry about *at all*, it's probably at the L2 or L3 cache levels. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.