-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
quinn_proto example with io_uring #1452
Comments
Would be great to have this! I think the cool version of this in 0.9 would be to try to implement I'd particularly love an implementation on top of tokio-uring. |
If you do go with quinn-proto, the discussion on using it in #1441 may be helpful. The async interface is a lot more ergonomic, but may be harder to demonstrate interesting performance results with. |
@djc At some point we will for sure have an implementation in tokio uring, but before that we need to analyze all the io_uring options and decide which opcodes needs to be implemented in tokio. E.g.: Zero copy? It reduces memory bandwidth usage but also increases latency on big packets. Sqpoll? again it reduces CPU usage but increases latency. And many other options to test. I gave a quick look to @Ralith , thank you for the link that's what I needed, I will try to follow it and then I will make more questions :) Maybe I could build a plain UDP server with all the configuration options, and then ask again for your help. If I understood correctly, I should use Some more questions:
|
QUIC needs a bunch of advanced socket functionality to get optimal behavior out of UDP. In the conventional API, this is only possible using the |
Something like this seems feasible. We can actually also send headers to the syscall. It'd however require Then, there's also the problem of |
Dear all,
I'm writine some io_uring examples in rust, and I would like to add QUIC. The idea is to try and benchmark some advanced options like batching, zero copy, AF_XDP, eBPF, ....
I guess my best option is to try quinn-proto, as it's advertised for custom event loops. Is there any example, maybe in the tests, maybe a simplified one? Do you think it's doable?
Any advice is welcome, before I will try to dive in the codebase :)
The text was updated successfully, but these errors were encountered: