]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: cpu-topo: Enforce thread-hard-limit on policy
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 27 May 2026 09:13:52 +0000 (11:13 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 27 May 2026 10:28:14 +0000 (12:28 +0200)
commit15896211004977c0252dc8327aef3d85110e825e
treea4a01f118509dcb197d34edf72db18abbdc6b80f
parent8d771110e08ca3fa2f99158c83e9abd0724bdd52
BUG/MEDIUM: cpu-topo: Enforce thread-hard-limit on policy

When a policy is set, and the number of threads is calculated
dynamically, make sure we enforce thread-hard-limit, and do not create
thread groups based on how many thread we would have created without
the limit.
This should be backported to 3.3 and 3.2. The patch won't apply cleanly
there, because the code has changed since then, but it should be very
similar, only we'll have to check "cpu_count" there, where in 3.4 we
check "thr_count".
src/cpu_topo.c