[Oisf-devel] CPU affinity in PF_RING

Victor Julien victor at inliniac.net
Fri Jan 13 15:28:07 UTC 2012


On 01/13/2012 04:13 PM, Chris Wakelin wrote:
> Hi,
> 
> I've been using the "workers" runmode in PF_RING (with cluster_flow) for
> weeks and have just noticed it doesn't seem to pay attention to the
> set_cpu_affinity setting. Is there a good reason for this? I quite like
> the idea of tying a single receive-detect-log path to a particular CPU,
> which is one of the reasons I liked Will Metcalf's "single" runmode.

No reason, just one missing line of code :) Update to git master please!
The worker threads use the "detect" affinity settings now.

> The reason I'm asking is my Suricata (1.2rc1 equivalent) is getting
> "busy" at times where one thread is consuming 100% of its CPU core and
> then dropping packets. Restarting Suricata fixes it for a while. It
> doesn't appear to be load-related (well, not number of packets or bytes,
> anyway) but might be getting triggered by particular network events.
> Having CPU affinity set might help keep track of one particular thread.

If you detect it when it happens, a bt of the running process (or rather
a couple of bt's) would be much appreciated!

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list