Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262756AbVCPTKz (ORCPT ); Wed, 16 Mar 2005 14:10:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261362AbVCPTKy (ORCPT ); Wed, 16 Mar 2005 14:10:54 -0500 Received: from dbl.q-ag.de ([213.172.117.3]:16583 "EHLO dbl.q-ag.de") by vger.kernel.org with ESMTP id S262760AbVCPTJn (ORCPT ); Wed, 16 Mar 2005 14:09:43 -0500 Message-ID: <4238845E.5060304@colorfullife.com> Date: Wed, 16 Mar 2005 20:09:18 +0100 From: Manfred Spraul User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.3) Gecko/20041020 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Martin J. Bligh" CC: Christoph Lameter , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: Fw: [PATCH] NUMA Slab Allocator References: <20050315204110.6664771d.akpm@osdl.org> <42387C2E.4040106@colorfullife.com> <273220000.1110999247@[10.10.2.4]> In-Reply-To: <273220000.1110999247@[10.10.2.4]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 31 Martin J. Bligh wrote: >That'd be my inclination .... but OTOH, we do that for pagecache OK. > The page cache doesn't have a global hash table. > Dunno, >I'm torn. Depends if there's locality on the file access or not, I guess. >Is there any *harm* in doing it node local .... perhaps creating a node >mem pressure imbalance (OTOH, there's loads of stuff that does that anyway ;-)) > > > The harm is slower kmem_cache_free and a lower hit ratio for the per-cpu caches: kmem_cache_free must identify and return wrong node objects, and due to these returns, the per-cpu array is more often empty in kmem_cache_alloc. IIRC someone from SGI wrote that they have seen bad performance in fork-bomb tests on large cpu count systems which might be caused by inter-node traffic on the mm_struct structure and that they think that a numa aware allocator would help. As far as I know no tests were done to very that assumption. -- Manfred - 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/