Re: SLUB: The unqueued Slab allocator

Andi Kleen
2007-02-22T16:54:23Z

Christoph Lameter <clameter@sgi.com> writes:

> This is a new slab allocator which was motivated by the complexity of the
> with the existing implementation.

Thanks for doing that work. It certainly was long overdue.

> D. SLAB has a complex cache reaper
>
> SLUB does not need a cache reaper for UP systems.

This means constructors/destructors are becomming worthless?
Can you describe your rationale why you think they don't make
sense on UP?

> G. Slab merging
>
> We often have slab caches with similar parameters. SLUB detects those
> on bootup and merges them into the corresponding general caches. This
> leads to more effective memory use.

Did you do any tests on what that does to long term memory fragmentation?
It is against the "object of same type have similar livetime and should
be clustered together" theory at least.

-Andi