Snort mailing list archives

Question about CPU affinity for interrupts


From: Roger Campbell <rcampbell2020 () gmail com>
Date: Mon, 10 Mar 2014 22:38:45 -0400

Hi everyone, had a question about IRQs and PF_RING.

Currently I'm testing out PF_RING and snort 2.9.6 on a 1Gb/s link that
usually tops out around 800Mb/s.  The system has 16 physical cores (32
Hyper-Threads).

If I run 8 snort instances in the format below, load is handled pretty well.

snort -R 1 --daq-dir=/usr/local/lib/daq --daq pfring --daq-mode passive
--daq-var clusterid=10 --daq-var bindcpu=4 -c /IDS/snort/etc/snort.conf -l
/IDS/snort/log1 -u snort -g snort -i eth4 -D
snort -R 2 --daq-dir=/usr/local/lib/daq --daq pfring --daq-mode passive
--daq-var clusterid=10 --daq-var bindcpu=6 -c /IDS/snort/etc/snort.conf -l
/IDS/snort/log2 -u snort -g snort -i eth4 -D
(continues using CPU 8,10,12,14,16,18)

I know that I should set CPU affinity for interrupts for each rx queue to a
specific CPU or set of CPUs.  My question is, should I bind these to 8 free
cores, or should I bind them to cores which are already hosting a snort
process?

All of the IRQs are currently being processed by ksoftirqd/0 on CPU 0 which
is not optimal.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: