|From:||Nick Piggin <npiggin-AT-suse.de>|
|To:||Pekka Enberg <penberg-AT-cs.helsinki.fi>|
|Subject:||Re: [RFC V2 SLEB 00/14] The Enhanced(hopefully) Slab Allocator|
|Date:||Tue, 25 May 2010 18:16:35 +1000|
|Cc:||Christoph Lameter <cl-AT-linux-foundation.org>, Christoph Lameter <cl-AT-linux.com>, linux-mm-AT-kvack.org, LKML <linux-kernel-AT-vger.kernel.org>, Andrew Morton <akpm-AT-linux-foundation.org>, Linus Torvalds <torvalds-AT-linux-foundation.org>, David Rientjes <rientjes-AT-google.com>, Zhang Yanmin <yanmin_zhang-AT-linux.intel.com>, Matthew Wilcox <willy-AT-linux.intel.com>, Matt Mackall <mpm-AT-selenic.com>|
On Tue, May 25, 2010 at 11:03:49AM +0300, Pekka Enberg wrote: > Hi Nick, > > On Tue, May 25, 2010 at 10:07 AM, Nick Piggin <firstname.lastname@example.org> wrote: > > There is nothing to stop incremental changes or tweaks on top of that > > allocator, even to the point of completely changing the allocation > > scheme. It is inevitable that with changes in workloads, SMP/NUMA, and > > cache/memory costs and hierarchies, the best slab allocation schemes > > will change over time. > > Agreed. > > On Tue, May 25, 2010 at 10:07 AM, Nick Piggin <email@example.com> wrote: > > I think it is more important to have one allocator than trying to get > > the absolute most perfect one for everybody. That way changes are > > carefully and slowly reviewed and merged, with results to justify the > > change. This way everybody is testing the same thing, and bisection will > > work. The situation with SLUB is already a nightmare because now each > > allocator has half the testing and half the work put into it. > > I wouldn't say it's a nightmare, but yes, it could be better. From my > point of view SLUB is the base of whatever the future will be because > the code is much cleaner and simpler than SLAB. That's why I find > Christoph's work on SLEB more interesting than SLQB, for example, > because it's building on top of something that's mature and stable. I don't think SLUB ever proved itself very well. The selling points were some untestable handwaving about how queueing is bad and jitter is bad, ignoring the fact that queues could be shortened and periodic reaping disabled at runtime with SLAB style of allocator. It also has relied heavily on higher order allocations which put great strain on hugepage allocations and page reclaim (witness the big slowdown in low memory conditions when tmpfs was using higher order allocations via SLUB). > That said, are you proposing that even without further improvements to > SLUB, we should go ahead and, for example, remove SLAB from Kconfig > for v2.6.36 and see if we can just delete the whole thing from, say, > v2.6.38? SLUB has not been able to displace SLAB for a long timedue to performance and higher order allocation problems. I think "clean code" is very important, but by far the hardest thing to get right by far is the actual allocation and freeing strategies. So it's crazy to base such a choice on code cleanliness. If that's the deciding factor, then I can provide a patch to modernise SLAB and then we can remove SLUB and start incremental improvements from there. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to firstname.lastname@example.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"email@example.com"> firstname.lastname@example.org </a>
Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds