]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: implement a sorting mechanism by CPU locality
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Jan 2025 17:56:44 +0000 (18:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commita8acdbd9fdeccad4b2df62a113364158c545ce13
tree4196e701b3040557054f7f2bdb3cc54104cbc75d
parent18133a054d7259d54ef7f584096f1f40e8af0790
MINOR: cpu-topo: implement a sorting mechanism by CPU locality

Once we've kept only the CPUs we want, the next step will be to form
groups and these ones are based on locality. Thus we'll have to sort by
locality. For now the locality is only inferred by the index. No grouping
is made at this point. For this we add the "cpu_reorder_by_locality"
function with a locality-based comparison function.
include/haproxy/cpu_topo.h
src/cpu_topo.c