]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: add NUMA node identification to CPUs on Linux
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Jul 2023 13:25:57 +0000 (15:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commitf6154c079e134c2e3ebc3da951d23d168e3522c8
tree32d9f1f932cd0d1431fe2fdc14ad137a74fb68ed
parent65612369e71726aa6bc7afdc48774bf170fb709f
MINOR: cpu-topo: add NUMA node identification to CPUs on Linux

With this patch we're also assigning NUMA node IDs to each CPU when one
is found. The code is highly inspired from the one in commit b56a7c89a
("MEDIUM: cfgparse: detect numa and set affinity if needed") that already
did the job, except that it could be simplified since we're just collecting
info to fill the ha_cpu_topo[] array.
src/cpu_topo.c