]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cpu-topo: Add a "cpu-affinity" option
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 1 Dec 2025 13:51:22 +0000 (14:51 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 18 Dec 2025 17:52:52 +0000 (18:52 +0100)
commit3865f6c5c6dc91c265ee42ac503bc59e9a8bced2
treeba38f6d59349dd180e50ee0bcfdd0d5e681d1eba
parent3671652bc95a2329f83aff7171ea571064460e9b
MEDIUM: cpu-topo: Add a "cpu-affinity" option

Add a new global option, "cpu-affinity", which controls how threads are
bound.
It currently accepts three values, "per-core", which will bind one thread to
each hardware thread of a given core, and "per-group" which will use all
the available hardware threads of the thread group, and "auto", the
default, which will use "per-group", unless "threads-per-core 1" has
been specified in cpu_policy, in which case it will use per-core.
doc/configuration.txt
src/cpu_topo.c