[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1005250303040.8045@chino.kir.corp.google.com>
Date: Tue, 25 May 2010 03:07:47 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Nick Piggin <npiggin@...e.de>
cc: Pekka Enberg <penberg@...helsinki.fi>,
Christoph Lameter <cl@...ux-foundation.org>,
Christoph Lameter <cl@...ux.com>, linux-mm@...ck.org,
LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Zhang Yanmin <yanmin_zhang@...ux.intel.com>,
Matthew Wilcox <willy@...ux.intel.com>,
Matt Mackall <mpm@...enic.com>
Subject: Re: [RFC V2 SLEB 00/14] The Enhanced(hopefully) Slab Allocator
On Tue, 25 May 2010, Nick Piggin wrote:
> 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).
>
I agree that the higher order allocations is a major problem and slub
relies heavily on them for being able to utilize both the allocation and
freeing fastpaths for a number of caches. For systems with a very large
amount of memory that isn't fully utilized and fragmentation isn't an
issue, this works fine, but for users who use all their memory and do some
amount of reclaim it comes at a significant cost. The cpu slab thrashing
problem that I identified with the netperf TCP_RR benchmark can be heavily
reduced by tuning certain kmalloc caches to allocate higher order slabs,
but that makes it very difficult to run with hugepages and the allocation
slowpath even slower. There are commandline workarounds to prevent slub
from using these higher order allocations, but the performance of the
allocator then suffers as a result.
> SLUB has not been able to displace SLAB for a long timedue to
> performance and higher order allocation problems.
>
Completely agreed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists