Re: what is the purpose of SLAB and SLUB
From: Christoph Lameter
Date: Thu Aug 25 2016 - 00:32:34 EST
On Tue, 23 Aug 2016, Andi Kleen wrote:
> Why would you stop someone from working on SLAB if they want to?
>
> Forcibly enforcing a freeze on something can make sense if you're
> in charge of a team to conserve resources, but in Linux the situation is
> very different.
I agree and frankly having multiple allocators is something good.
Features that are good in one are copied to the other and enhanced in the
process. I think this has driven code development quite a bit.
Every allocator has a different basic approach to storage layout and
synchronization which determines performance in various usage scenarios.
The competition of seeing if the developer that is a fan of one can come
up with a way to make performance better or storage use more effective in
a situation where another shows better numbers is good.
There may be more creative ways of coming up with new ways of laying out
storage in the future and I would like to have the flexibility in the
kernel to explore those if necessary with additional variations.
The more common code we can isolate the easier it will become to just try
out a new layout and a new form of serialization to see if it provides
advantages.