]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: update CPU topology from excluded CPUs at boot
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Jul 2023 10:06:00 +0000 (12:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commita6fdc3eaf0f3c4c5115be3059b3c0e930ade7b05
tree53d69218caa43a8e319003c73b14380f06b4cdbb
parentbdb731172cad1f1e928e9331b1910ed5e86da3d6
MINOR: cpu-topo: update CPU topology from excluded CPUs at boot

Now before trying to resolve the thread assignment to groups, we detect
which CPUs are not bound at boot so that we can mark them with
HA_CPU_F_EXCLUDED. This will be useful to better know on which CPUs we
can count later. Note that we purposely ignore cpu-map here as we
don't know how threads and groups will map to cpu-map entries, hence
which CPUs will really be used.

It's important to proceed this way so that when we have no info we
assume they're all available.
include/haproxy/cpu_topo.h
src/cpu_topo.c
src/haproxy.c