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

UDP could do a better job of queueing #1893

Open
gdamore opened this issue Oct 13, 2024 · 0 comments
Open

UDP could do a better job of queueing #1893

gdamore opened this issue Oct 13, 2024 · 0 comments

Comments

@gdamore
Copy link
Contributor

gdamore commented Oct 13, 2024

We're seeing some "performance" problems that look like lots of dropped messages.

I think this may be a consequence of the design for UDP being based on the same design we used for TCP, but unlike TCP, UDP can benefit from from the fact that each message stands alone, and does not depend on the messages before or after.

Consequently, I suspect we could use a batch of aios to perform fast turnarounds on the receive operations. Some care would be needed to ensure callbacks are ordered properly on the receive side however. (In order to avoid reordering based drops.)

Also, linux has the recvmmsg and sendmmsg calls which can reduce the number of system calls we perform when doing these operations. That's likely to be worth exploring as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant