From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751626AbXCWOOK (ORCPT ); Fri, 23 Mar 2007 10:14:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751682AbXCWOOJ (ORCPT ); Fri, 23 Mar 2007 10:14:09 -0400 Received: from one.firstfloor.org ([213.235.205.2]:53516 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbXCWOOI (ORCPT ); Fri, 23 Mar 2007 10:14:08 -0400 Date: Fri, 23 Mar 2007 15:14:07 +0100 From: Andi Kleen To: Christoph Lameter Cc: "Siddha, Suresh B" , Eric Dumazet , Andi Kleen , Andrew Morton , linux kernel Subject: Re: non-NUMA cache_free_alien() (was Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;) Message-ID: <20070323141407.GB20548@one.firstfloor.org> References: <20070320181235.77d28864.dada1@cosmosbay.com> <20070320213218.GA13952@one.firstfloor.org> <20070321024452.GA17532@one.firstfloor.org> <20070322212831.GA25665@linux-os.sc.intel.com> <4602FF57.7030001@cosmosbay.com> <20070322224045.GA3200@linux-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 22, 2007 at 06:25:16PM -0700, Christoph Lameter wrote: > On Thu, 22 Mar 2007, Siddha, Suresh B wrote: > > > > You should check num_possible_nodes(), or nr_node_ids (this one is cheaper, > > > its a variable instead of a function call) > > > > But that is based on compile time option, isn't it? Perhaps I need > > to use some other mechanism to find out the platform is not NUMA capable.. > > No its runtime. I don't see any code that would ever change the mask from the compile default. But that is easy to fix. -Andi