]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: cpu-topo: Distribute CPUs fairly across groups
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 18 Feb 2026 10:22:04 +0000 (10:22 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Feb 2026 07:17:16 +0000 (08:17 +0100)
commit84837b6e70d8322c144d7f16e21267827668f2be
treeafb2bfbcf7faed08520de59f0ba2eaf3ea3584e4
parentca5332a9c35bed1f5c40adeaa03fe902d83075fa
BUG/MEDIUM: cpu-topo: Distribute CPUs fairly across groups

Make sure CPUs are distributed fairly across groups, in case the number
of groups to generate is not a divider of the number of CPUs, otherwise
we may end up with a few groups that will have no CPU bound to them.

This was introduced in 3.4-dev2 with commit 56fd0c1a5c ("MEDIUM: cpu-topo:
Add an optional directive for per-group affinity"). No backport is
needed unless this commit is backported.
src/cpu_topo.c