]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: Add the threads support in cpu-map directive
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Nov 2017 15:50:41 +0000 (16:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Nov 2017 14:38:50 +0000 (15:38 +0100)
commitcb6a94510dceab07cf66d27c14f64a3ffaef8bfc
tree9ecd641342242749a345bba73c6895c97e9214d8
parent11da456e77eebaba9cc64ea02b7c281220088d22
MINOR: config: Add the threads support in cpu-map directive

Now, it is possible to bind CPU at the thread level instead of the process level
by defining a thread set in "cpu-map" directives. Thus, its format is now:

  cpu-map [auto:]<process-set>[/<thread-set>] <cpu-set>...

where <process-set> and <thread-set> must follow the format:

  all | odd | even | number[-[number]]

Having a process range and a thread range in same time with the "auto:" prefix
is not supported. Only one range is supported, the other one must be a fixed
number. But it is allowed when there is no "auto:" prefix.

Because it is possible to define a mapping for a process and another for a
thread on this process, threads will be bound on the intersection of their
mapping and the one of the process on which they are attached. If the
intersection is null, no specific binding will be set for the threads.
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/haproxy.c