]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: threads: detect incomplete CPU bindings
authorWilly Tarreau <w@1wt.eu>
Mon, 4 Sep 2023 14:53:20 +0000 (16:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Sep 2023 17:39:17 +0000 (19:39 +0200)
commit8357f950cbb33640a6b940fe1fc33120a5ab177d
tree98c7d696a4168d1490874c70e43d354232917d30
parente65f54cf96725eeb2bc757cde6bd053152a3eef5
MEDIUM: threads: detect incomplete CPU bindings

It's very easy to mess up with some cpu-map directives and to leave
some thread unbound. Let's add a test that checks that either all
threads are bound or none are bound, but that we do not face the
intermediary situation where some are pinned and others are left
wandering around, possibly on the same CPUs as bound ones.

Note that this should not be backported, or maybe turned into a
notice only, as it appears that it will easily catch invalid
configs and that may break updates for some users.
include/haproxy/thread.h
src/haproxy.c
src/thread.c