Project

General

Profile

Optimization #1403

Updated by Victor Julien about 9 years ago

PacketPoolWait in autofp can wait for considerable time. Until now 
 it was essentially spinning, keeping the CPU 100% busy. 

 This patch introduces a condition to wait in such cases. 

 Atomically flag pool that consumer is waiting, so that we can sync 
 the pending pool right away instead of waiting for the 
 MAX_PENDING_RETURN_PACKETS limit. 

 Current GitHub PR: https://github.com/inliniac/suricata/pull/1343

Back