]> www.infradead.org Git - users/jedix/linux-maple.git/commit
slab: allow NUMA restricted allocations to use percpu sheaves
authorVlastimil Babka <vbabka@suse.cz>
Wed, 11 Jun 2025 08:01:58 +0000 (10:01 +0200)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 28 Aug 2025 20:19:58 +0000 (16:19 -0400)
commit1113b946dc0f9b881cd80587187c460be6572991
tree6136a574a874cca11091a89ee9a1e87b4c5e5add
parent65847dac19d08af606e5d49e3728c61844e93620
slab: allow NUMA restricted allocations to use percpu sheaves

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.

Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c