Skip to content

af-packet: speed up thread sync during startup#11189

Closed
victorjulien wants to merge 1 commit intoOISF:masterfrom
victorjulien:af-packet-startup/v1
Closed

af-packet: speed up thread sync during startup#11189
victorjulien wants to merge 1 commit intoOISF:masterfrom
victorjulien:af-packet-startup/v1

Conversation

@victorjulien
Copy link
Member

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.

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.
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 20867

@victorjulien
Copy link
Member Author

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

@victorjulien
Copy link
Member Author

replaced by #11806

@victorjulien victorjulien deleted the af-packet-startup/v1 branch January 15, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants