[PATCH] arm64: Increase the max granular size
cl at linux.com
Wed Nov 4 05:53:50 PST 2015
On Wed, 4 Nov 2015, Catalin Marinas wrote:
> The simplest option would be to make sure that off slab isn't allowed
> for caches of KMALLOC_MIN_SIZE or smaller, with the drawback that not
> only "kmalloc-128" but any other such caches will be on slab.
The reason for an off slab configuration is denser object packing.
> I think a better option would be to first check that there is a
> kmalloc_caches entry for freelist_size before deciding to go off-slab.
Hmmm.. Yes seems to be an option.
Maybe we simply revert commit 8fc9cf420b36 instead? That does not seem to
make too much sense to me and the goal of the commit cannot be
accomplished on ARM. Your patch essentially reverts the effect anyways.
Smaller slabs really do not need off slab management anyways since they
will only loose a few objects per slab page.
More information about the linux-arm-kernel