Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Christoph Lameter <clameter@xxxxxxx>
- Date: Mon, 9 Jul 2007 09:06:46 -0700 (PDT)
On Mon, 9 Jul 2007, Nick Piggin wrote:
A reason for retaining slob would be that it has some O(n) memory saving
due to better packing, etc. Indeed that was the reason for merging it in
the first place. If slob no longer retains that advantage (wrt slub) then
we no longer need it.
SLOB contains several significant O(1) and also O(n) memory savings that
are so far impossible-by-design for SLUB. They are: slab external
fragmentation is significantly reduced; kmalloc internal fragmentation is
significantly reduced; order of magnitude smaller kmem_cache data type;
order of magnitude less code...
Well that is only true for kmalloc objects < PAGE_SIZE and to some extend
offset by the need to keep per object data in SLUB. But yes the power of
two caches are a necessary design feature of SLAB/SLUB that allows O(1)
operations of kmalloc slabs which in turns causes memory wastage because
of rounding of the alloc to the next power of two. SLUB has less wastage
there than SLAB since it can fit power of two object tightly into a slab
instead of having to place additional control information there like SLAB.
O(n) memory savings? What is that?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Nick Piggin
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Andrew Morton
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- References:
- [patch 00/10] [RFC] SLUB patches for more functionality, performance and maintenance
- From: Christoph Lameter
- [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Christoph Lameter
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Ingo Molnar
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Andrew Morton
- Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- From: Nick Piggin
- [patch 00/10] [RFC] SLUB patches for more functionality, performance and maintenance
- Prev by Date: Re: [PATCH 4/4][Doc] Document pci_iomap()
- Next by Date: Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- Previous by thread: Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- Next by thread: Re: [patch 09/10] Remove the SLOB allocator for 2.6.23
- Index(es):
Relevant Pages
|