Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757748AbZAWMz2 (ORCPT ); Fri, 23 Jan 2009 07:55:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755309AbZAWMzR (ORCPT ); Fri, 23 Jan 2009 07:55:17 -0500 Received: from cantor2.suse.de ([195.135.220.15]:44578 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754837AbZAWMzQ (ORCPT ); Fri, 23 Jan 2009 07:55:16 -0500 Date: Fri, 23 Jan 2009 13:55:08 +0100 From: Nick Piggin To: Andi Kleen Cc: Pekka Enberg , Linux Memory Management List , Linux Kernel Mailing List , Andrew Morton , Lin Ming , "Zhang, Yanmin" , Christoph Lameter Subject: Re: [patch] SLQB slab allocator Message-ID: <20090123125508.GG19986@wotan.suse.de> References: <20090121143008.GV24891@wotan.suse.de> <87hc3qcpo1.fsf@basil.nowhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87hc3qcpo1.fsf@basil.nowhere.org> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 916 Lines: 20 On Fri, Jan 23, 2009 at 10:55:26AM +0100, Andi Kleen wrote: > Nick Piggin writes: > > +#ifdef CONFIG_NUMA > > +void *__kmalloc_node(size_t size, gfp_t flags, int node); > > +void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node); > > + > > +static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) > > kmalloc_node should be infrequent, i suspect it can be safely out of lined. Hmm, it only takes up another couple of hundred bytes for a full numa kernel. Completely out of lining it can take a slightly slower path and makes the code slightly different from the kmalloc case. So I'll leave this change for now. -- 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/