Continuing the discussion from Suricata 6.0.4 behavior on threads CPU affnity wrong on some hardware:
If I disable HyperThreading I’m able to have suricata threads honoring cpu affinity for all 4 network interfaces (3 on numa node 0 en 1 on node 1) but only able to have 8 threads per cpu. If I enable HT,
19 threads per nic is possible, but cpu affinity gets a mess: 22 threads on wrong numa node.
See the challenge :
HT disabled
NUMA node0 CPU(s): 0-31
NUMA node1 CPU(s): 32-63
HT enabled:
NUMA node0 CPU(s): 0-31,64-95
NUMA node1 CPU(s): 32-63,96-127
What is performance wise the prefered option? More threads with a messy cpu affinity, or less threads honoring cpu affinity?
Cheers,
Andre