Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not handle wakeup events if the event queue is not primed #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samikhawaja
Copy link

Onload stack in kernel for AF_XDP unnecessarlyy tries to handle events even when the event queue is not primed. This wastes cpu cycles and also introduces lock contention when we are running in spinning mode.

Return early and do not handle wakeup events if the event qeueue was not primed.

Latency before this change:
num_transactions=386341
latency_min=0.000013776
latency_max=0.200256189
latency_mean=0.000023243
latency_stddev=0.001065715
latency_p50=0.000015350
latency_p90=0.000021750
latency_p99=0.000023030
latency_p99.9=0.000024630

Latency after this change:
num_transactions=532948
latency_min=0.000013594
latency_max=0.199509553
latency_mean=0.000018712
latency_stddev=0.000943680
latency_p50=0.000014230
latency_p90=0.000014550
latency_p99=0.000015990
latency_p99.9=0.000017430

Onload stack in kernel for AF_XDP unnecessarlyy tries to handle events
even when the event queue is not primed. This wastes cpu cycles and also
introduces lock contention when we are running in spinning mode.

Return early and do not handle wakeup events if the event qeueue was not
primed.

Latency before this change:
num_transactions=386341
latency_min=0.000013776
latency_max=0.200256189
latency_mean=0.000023243
latency_stddev=0.001065715
latency_p50=0.000015350
latency_p90=0.000021750
latency_p99=0.000023030
latency_p99.9=0.000024630

Latency after this change:
num_transactions=532948
latency_min=0.000013594
latency_max=0.199509553
latency_mean=0.000018712
latency_stddev=0.000943680
latency_p50=0.000014230
latency_p90=0.000014550
latency_p99=0.000015990
latency_p99.9=0.000017430
@samikhawaja samikhawaja requested a review from a team as a code owner January 30, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant