]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cpu-topo: make sure to properly assign CPUs to threads as a fallback
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Mar 2025 13:04:54 +0000 (14:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit4a525e8d27dc61c91f8cf191c1775dfb6f664796
tree7b55ea57d261d09ea1d7d70981257c63fabc67dc
parent1af4942c95ce261a53db83d54565fa1d495ad424
MEDIUM: cpu-topo: make sure to properly assign CPUs to threads as a fallback

If no cpu-map is done and no cpu-policy could be enforced, we still need
to count the number of usable CPUs, assign them to all threads and set
the nbthread value accordingly.

This already handles the part that was done in check_config_validity()
via thread_cpus_enabled_at_boot.
src/thread.c