]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: add ha_cpu_topo definition
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Jul 2023 13:24:02 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commitd165f5d3abd8fbb996f5b1bea5f163901ffe3126
treea120336e59127a6c14336050d6c29c14165bee85
parent05a4efb1028fab549b4f5b237187e95a703eb9a7
MINOR: cpu-topo: add ha_cpu_topo definition

This structure will be used to store information about each CPU's
topology (package ID, L3 cache ID, NUMA node ID etc). This will be used
in conjunction with CPU affinity setting to try to perform a mostly
optimal binding between threads and CPU numbers by default. Since it
was noticed during tests that absolutely none of the many machines
tested reports different die numbers, the die_id is not stored.
Also, it was found along experiments that the cluster ID will be used
a lot, half of the time as a node-local identifier, and half of the
time as a global identifier. So let's store the two versions at once
(cl_gid, cl_lid).

Some flags are added to indicate causes of exclusion (offline, excluded
at boot, excluded by rules, ignored by policy).
include/haproxy/cpu_topo-t.h [new file with mode: 0644]