[dm-devel] slab: introduce the flag SLAB_MINIMIZE_WASTE
Christopher Lameter
cl at linux.com
Tue Apr 17 14:47:58 UTC 2018
On Mon, 16 Apr 2018, Mikulas Patocka wrote:
> If you boot with slub_max_order=10, the kmalloc-8192 cache has 64 pages.
> So yes, it increases the order of all slab caches (although not up to
> 4MB).
Hmmm... Ok. There is another setting slub_min_objects that controls how
many objects to fit into a slab page.
We could change the allocation scheme so that it finds the mininum order
with the minimum waste. Allocator performance will drop though since fewer
object are then in a slab page.
More information about the dm-devel
mailing list