-
Notifications
You must be signed in to change notification settings - Fork 128
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
multi_thread support #258
Comments
Is there any limitation in implementing this that doesn't let us just use the multithreaded equivalents of the currently used types in the library? (e.g., |
@Alonely0 Its possible to configure io_uring such that it invalid for a submission to come from more than 1 thread. I suspect there are other things to consider also. tokio_uring::builder().uring_builder(
tokio_uring::uring_builder().setup_single_issuer()
) |
I think multi-thread support is essential I use tokio to write a VPN program, when using rt-multi-threaded feature and I have set |
I notice the if
|
So, in general the easiest path to doing this is going to be to do something similar to what @Sherlock-Holo described, however it isn't clear to me that this will perform terribly well. Contention on the squeue may be an issue, so there would be a bit of "wait and see" with respects to what means of doing this ultimately stick. For now I'd recommend a runtime-per-core model of some sort. Depending on what you are doing, that is probably going to work quite well. |
Tracking issue for support for multi_thread runtime.
The text was updated successfully, but these errors were encountered: