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

Add an option to manage affinity settings #10

Open
norg opened this issue Mar 6, 2020 · 0 comments
Open

Add an option to manage affinity settings #10

norg opened this issue Mar 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@norg
Copy link
Contributor

norg commented Mar 6, 2020

In the case of cluster_qm and fixed affinity settings between network queues and cpu cores it is necessary that the suricata affinity settings and suricata interface settings are aligned.

Example:

enp94s0f0 cluster_qm mode with cpu cores 1-9 assigned on NUMA node 0 via set_irq_affinity and RSS Queues
enp94s0f1 cluster_qm mode with cpu cores 21-29 assigned o NUMA node 0 via set_irq_affinity and RSS Queues
enp175s0f0 cluster_flow mode with cpu cores 11-19 assigned on NUMA node 1

This requires that the worker-cpu-set is set to [ ""1-9","21-29", "11-19" ] if the interface config has the order enp94s0f0, enp94s0f1, enp175s0f0 as suricata picks the cores in order of the interface config.
So if [ ""1-9","11-19", "21-29" ] would be set enp94s0f1 would use the cores 11-19 although it should use 21-29.

This could change in the future if Suricata changes the behaviour or the interface settings can define the cores directly.

@satta satta added the enhancement New feature or request label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants