From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [PATCH net-next] net: allocate skbs on local node Date: Wed, 13 Oct 2010 11:00:55 -0500 (CDT) Message-ID: References: <1286838210.30423.128.camel@edumazet-laptop> <1286839363.30423.130.camel@edumazet-laptop> <1286859925.30423.184.camel@edumazet-laptop> <20101011230322.f0f6dd47.akpm@linux-foundation.org> <1286866699.30423.234.camel@edumazet-laptop> <20101012002435.f51f2c0e.akpm@linux-foundation.org> <1286869793.2732.24.camel@edumazet-laptop> <20101012005856.994bea6d.akpm@linux-foundation.org> <4CB441CB.2000708@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Pekka Enberg , Andrew Morton , Eric Dumazet , David Miller , netdev , Michael Chan , Eilon Greenstein , Christoph Hellwig , LKML , Nick Piggin To: David Rientjes Return-path: Received: from smtp104.prem.mail.ac4.yahoo.com ([76.13.13.43]:43030 "HELO smtp104.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750754Ab0JMQBA (ORCPT ); Wed, 13 Oct 2010 12:01:00 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 12 Oct 2010, David Rientjes wrote: > > Take the unified as a SLAB cleanup instead? Then at least we have > > a large common code base and just differentiate through the locking > > mechanism? > > > > Will you be adding the extensive slub debugging to slab then? It would be > a shame to lose it because one allocator is chosen over another for > performance reasons and then we need to recompile to debug issues as they > arise. Well basically we would copy SLUB to SLAB apply unification patches to SLAB instead of SLUBB. We first have to make sure that the unified patches have the same performance as SLAB. It maybe much better to isolate the debug features and general bootstrap from the particulars of the allocation strategy of either SLUB or SLAB. That way a common code base exists and it would be easier to add different allocation strategies. Basically have slab.c with the basic functions and then slab_queueing.c and slab_noqueue.c for SLAB/SLUB with the particulars of the allocation strategy?