Re: [PATCH 2/5] mm/khugepaged: use slab cache instead of normal kmalloc

From: Vlastimil Babka (SUSE)

Date: Tue Jun 09 2026 - 06:35:39 EST


On 5/31/26 06:23, Luka Bai wrote:
> From: Luka Bai <lukabai@xxxxxxxxxxx>
>
> We added a kmem slab cached called collapse_hint_cache for
> khugepaged collapse hint, to improve the performance in allocation
> and freeing for the hint structs.
>
> Signed-off-by: Luka Bai <lukabai@xxxxxxxxxxx>

Khugepaged isn't exactly a hotpath? Adding own cache comes with memory
overhead, so this doesn't seem like a sufficient reason to do that.