Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft: improve CPU cores affinity to NUMA nodes v4 #11706

Closed

Conversation

lukashino
Copy link
Contributor

@lukashino lukashino commented Sep 3, 2024

Followup of #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

lukashino and others added 2 commits September 3, 2024 13:24
This work let's you set threading settings either:
- automatically - to let Suricata decide what cores from what NUMA
  is better for the given interface
- manually - you can per-interface configure threading settings

This requires hwloc-devel / hwloc-dev to be installed
@suricata-qa
Copy link

ERROR:

ERROR: QA failed on build_asan.

Pipeline 22393

@lukashino
Copy link
Contributor Author

Try #12248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase Needs rebase to master
Development

Successfully merging this pull request may close these issues.

3 participants