[dm-devel] slab: introduce the flag SLAB_MINIMIZE_WASTE
Christopher Lameter
cl at linux.com
Mon Apr 16 15:45:48 UTC 2018
On Mon, 16 Apr 2018, Mikulas Patocka wrote:
> >
> > Or an increase in slab_max_order
>
> But that will increase it for all slabs (often senselessly - i.e.
> kmalloc-4096 would have order 4MB).
4MB? Nope.... That is a power of two slab so no wasted space even with
order 0.
Its not a senseless increase. The more objects you fit into a slab page
the higher the performance of the allocator.
> I need to increase it just for dm-bufio slabs.
If you do this then others will want the same...
More information about the dm-devel
mailing list