Re: [PATCH] mm/slub: allocate sheaves on local memory nodes
From: Harry Yoo
Date: Tue May 26 2026 - 02:57:59 EST
On 5/25/26 5:13 PM, Hao Li wrote:
Sheaves are per-CPU allocator metadata and their object arrays are accessed
from the local fast paths. Allocate them with a NUMA node hint instead of
using plain kzalloc(). While no measurable performance improvement was
observed, this approach is theoretically correct.
During bootstrap we allocate sheaves for all possible CPUs before every
possible CPU has an initialized cpu_to_mem() value, so compute the
memory node from local_memory_node(cpu_to_node(cpu)) just like
what __build_all_zonelists does.
What about sheaves for non-kmalloc-normal caches that are allocated & initialized by init_percpu_sheaves()?
Would addressing above change "no measurable performance impact was observed"?
--
Cheers,
Harry / Hyeonggon
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature