From 5b09341c025762c29fc5907cdb95386c56d97ee7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 8 Jul 2022 09:38:30 +0200 Subject: [PATCH] MEDIUM: cpu-map: replace the process number with the thread group number The principle remains the same, but instead of having a single process and ignoring extra ones, now we set the affinity masks for the respective threads of all groups. The doc was updated with a few extra examples. --- doc/configuration.txt | 74 +++++++++++++++++++++--------------- include/haproxy/cpuset-t.h | 6 +-- include/haproxy/cpuset.h | 2 +- src/cfgparse-global.c | 78 +++++++++++++++++++++----------------- src/cpuset.c | 2 +- src/haproxy.c | 19 ++++++---- src/thread.c | 10 ++--- 7 files changed, 109 insertions(+), 82 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 59884386b0..8ba4ce8979 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1210,58 +1210,57 @@ close-spread-time