-
Notifications
You must be signed in to change notification settings - Fork 44
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
Improve bandwidth #29
Comments
Hello @aramperes , I may have encountered the same issue with |
@zonyitoo A few thoughts:
Lines 28 to 41 in 648154b
|
Would this benefit from removing Tokio completely and switching to crossbeam? That should keep the architecture intact, but I don’t know how much that would improve performance. Alternatively, crossfire should be an almost drop in replacement for Tokio’s broadcast while not having to remove the async runtime. It boasts higher speeds on its readme compared to even Tokio’s single consumer channels. |
Moving away from Tokio/async may indeed be an option, however I would need to see clear benefits/benchmarks before making that decision. Maybe it's something worth testing in a branch. Either way, I don't think this would solve the locking issue in the crossfire doesn't seem maintained enough for me to make the switch, and hasn't been udpated past Tokio |
I tested some
sftp
tunneling on some big files and found that each connection is capped at around2MB/s
. Naturally this depends on the latency and bandwidth with the WireGuard router, but with the official kernel implementation I get around20MB/s
for the same endpoint.Parity with the kernel is not a goal since userspace will be a bit slower, but I would like to aim for something like ~50% instead of ~10%.
The text was updated successfully, but these errors were encountered: