Aaa....
- CPU have multiple
cores and one
core can do one
thread.
- If CPU support
simultaneous multithreading (SMT, Hyper-Threading, etc.), it can do
two threads per
core.
for example:
Intel i7-9700K 8 cores, total 8 threads
Intel i9-9900K 8 cores, total 16 threads
But on later in descriptions, threads are mention as "cores" :/ it's confusing.
About
taskset.
-c or
--cpu-list for using numerical list.
Check your cpu "cores" with linux command:
top and press "1"
Core count start from index 0
PHP Code:
taskset -c 0
taskset -c 1
taskset -c 2
taskset -c 3
taskset -c 4
.
.
.
taskset -c 9
taskset -c 10
taskset -c 11
- Try set one thread per server like above first 4 lines.
- To set one core, use pair threads if you can't/want disable SMT from server. [0,1], [2,3], [4,5], etc.
or better, use every second index, 0, 2, 4, 6, 8, 10
- seems op have 12 cores, 24 threads. First 0-11 are physical cores, hyper-threads are 12-23
__________________