[PATCH v5 10/14] mm, slab: allow NUMA restricted allocations to use percpu sheaves
Vlastimil Babka
vbabka at suse.cz
Tue Aug 26 03:49:45 PDT 2025
On 8/25/25 08:52, Harry Yoo wrote:
> On Wed, Jul 23, 2025 at 03:34:43PM +0200, Vlastimil Babka wrote:
>> Currently allocations asking for a specific node explicitly or via
>> mempolicy in strict_numa node bypass percpu sheaves. Since sheaves
>> contain mostly local objects, we can try allocating from them if the
>> local node happens to be the requested node or allowed by the mempolicy.
>> If we find the object from percpu sheaves is not from the expected node,
>> we skip the sheaves - this should be rare.
>>
>> Signed-off-by: Vlastimil Babka <vbabka at suse.cz>
>> ---
>
> With or without ifdeffery suggested by Suren
> (or probably IS_ENABLED(CONFIG_NUMA) && node != NUMA_NO_NODE?),
>
> Reviewed-by: Harry Yoo <harry.yoo at oracle.com>
Thanks both, I've extracted IS_ENABLED(CONFIG_NUMA) && node != NUMA_NO_NODE)
to a local bool variable.
More information about the maple-tree
mailing list