MINOR: global: add option to disable numa detection

Render numa detection optional with a global configuration statement
'no numa-cpu-mapping'. This can be used if the applied affinity of the
algorithm is not optimal. Also complete the documentation with this new
keyword.
This commit is contained in:
Amaury Denoyelle
2021-03-26 18:50:33 +01:00
parent b56a7c89a8
commit 0f50cb9c73
5 changed files with 24 additions and 4 deletions

View File

@@ -166,6 +166,7 @@ struct global {
struct hap_cpuset thread[MAX_THREADS]; /* list of CPU masks for the 32/64 first threads of the 1st process */
} cpu_map;
#endif
int numa_cpu_mapping;
/* The info above is config stuff, it doesn't change during the process' life */
/* A number of the elements below are updated by all threads in real time and
* suffer high contention, so we need to put them in their own cache lines, if