suricata
suricata copied to clipboard
draft: improve CPU cores affinity to NUMA nodes v4
Followup of https://github.com/OISF/suricata/pull/11521
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/7036
This work allows more precise thread assignment and it is done either
- automatically - by picking assigned cores of the same NUMA locality as the interface from the worker-cpu-list
- manually - you can specify per-iface settings in the threading section
This works with AF-PACKET and DPDK (and should with other capture modes as well). Primary target is workers runmode.
Dependency - hwloc - for the automatic core assignment.
At this point I am not sure why pkg-config doesn't find hwloc in github ci - it works on my machines - in case it fails on yours add LIBS="$LIBS -lhwloc" to your configure.ac