Skip to content

Try to send inline from DpRawTxEnqueue #2835

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

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

csujedihy
Copy link
Contributor

@csujedihy csujedihy commented Jun 22, 2022

Description

In CxPlatDpRawTxEnqueue, if we are enqueuing a TX packet onto a queue that's polled by the same thread, try to do send the packet inline if it has FIN bit set.

Testing

CI

Documentation

N/A

@csujedihy csujedihy added Area: Performance Area: Lola Related to low latency work labels Jun 22, 2022
@csujedihy
Copy link
Contributor Author

csujedihy commented Jun 22, 2022

On our lola VMs, it seems to improve latency by a bit when response sizes are small. I used -requests:20.
image

@csujedihy
Copy link
Contributor Author

Not much improvement regarding latency but throughput seems to be noticeably improved.

Comment on lines +1564 to +1565
// worker TX queue (used to actually send packets), but only if we don't
// already have anything in the worker TX queue (why?).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtfriesen I believe you wrote the original logic (which we are just moving here), so could you answer the "why?" part? Why do we only move the TxQueue to the WorkerTxQueue if the WorkerTxQueue is currently empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Lola Related to low latency work Area: Performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants