Re: [PATCH] mm/slub: serve slabobj_ext array from a strictly larger kmalloc cache
From: Harry Yoo
Date: Wed Jul 01 2026 - 00:54:30 EST
On 7/1/26 1:30 PM, Harry Yoo wrote:
> We can do that in pre-7.2 kernels, by teaching kmalloc_type() and
> kmalloc_slab() select the new KMALLOC_TYPE based on __GFP_NO_OBJ_EXT?
>
> e.g.) Select the new KMALLOC_TYPE when KMALLOC_NOT_NORMAL_BITS is not
> set AND __GFP_NO_OBJ_EXT is set.
Uh, this is bit subtle though.
In some cases KMALLOC_DMA == KMALLOC_NORMAL,
KMALLOC_CGROUP == KMALLOC_NORMAL,
or KMALLOC_RECLAIM == KMALLOC_NORMAL.
Just checking KMALLOC_NOT_NORMAL_BITS is misleading.
> This doesn't require kmem_buckets and should be much simpler.
--
Cheers,
Harry / Hyeonggon
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature