suricata icon indicating copy to clipboard operation
suricata copied to clipboard

af-packet: speed up thread sync during startup

Open victorjulien opened this issue 1 year ago • 2 comments

Threads are initialized sequentially to allow for a predictable mapping of threads and queues. Not all parts of the start up need to be done sequentially. The setting up of the rings can be very expensive, taking of a couple of hundred milliseconds. The ring setup doesn't need to be done sequentially though.

This patch releases the thread early, after bind but before the ring setups.

victorjulien avatar May 30 '24 14:05 victorjulien

Information: QA ran without warnings.

Pipeline 20867

suricata-qa avatar May 30 '24 19:05 suricata-qa

@pevma can you give this a test run as well?

victorjulien avatar May 31 '24 18:05 victorjulien

replaced by #11806

victorjulien avatar Sep 20 '24 14:09 victorjulien