Re: [PATCH v4 22/22] mm/slub: cleanup and repurpose some stat items
From: Harry Yoo
Date: Thu Jan 29 2026 - 02:42:33 EST
On Fri, Jan 23, 2026 at 07:53:00AM +0100, Vlastimil Babka wrote:
> A number of stat items related to cpu slabs became unused, remove them.
>
> Two of those were ALLOC_FASTPATH and FREE_FASTPATH. But instead of
> removing those, use them instead of ALLOC_PCS and FREE_PCS, since
> sheaves are the new (and only) fastpaths, Remove the recently added
> _PCS variants instead.
>
> Change where FREE_SLOWPATH is counted so that it only counts freeing of
> objects by slab users that (for whatever reason) do not go to a percpu
> sheaf, and not all (including internal) callers of __slab_free(). Thus
> sheaf flushing (already counted by SHEAF_FLUSH) does not affect
> FREE_SLOWPATH anymore. This matches how ALLOC_SLOWPATH doesn't count
> sheaf refills (counted by SHEAF_REFILL).
>
> Reviewed-by: Hao Li <hao.li@xxxxxxxxx>
> Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>
> ---
Looks good to me,
Reviewed-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
--
Cheers,
Harry / Hyeonggon