Open ByteDou opened 2 years ago
I'm currently in the middle of a rewrite which should improve things, I just haven't had the bandwidth to finish this yet.
I'm currently in the middle of a rewrite which should improve things, I just haven't had the bandwidth to finish this yet.
Thanks for your reply.
Have you encountered the bandwidth issue I mentioned?
In addition, as you said, you are rewriting boringtun and could you tell me some details about your work? We are also working on some optimizations, so we don't want to reinvent the wheel.
@ByteDou I'm getting rid of the custom epoll loop that we have and moving this over to tokio. This should also make it a bit easier to just shard this out and use reuseport.
Hi! We downloaded boringtun and ran performance tests, and we found that throughput was inconsistent. Here's a case. for server:
for client:
for result:
We changed the architecture and created multiple reuseport sockets for each thread. Each thread operated only on its own socket and the performance was very stable. Here's our patch: multi_poll.diff.txt
I don't know if this issue is known, and if the community has a fix or optimization plan.
Looking forward to reply.