Re: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE

From: Christopher Lameter
Date: Thu Apr 26 2018 - 14:51:58 EST


On Wed, 25 Apr 2018, Mikulas Patocka wrote:

> >
> > Could yo move that logic into slab_order()? It does something awfully
> > similar.
>
> But slab_order (and its caller) limits the order to "max_order" and we
> want more.
>
> Perhaps slab_order should be dropped and calculate_order totally
> rewritten?

Yes you likely need to do something creative with max_order if not with
more stuff.