-
Notifications
You must be signed in to change notification settings - Fork 50
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
imer Linux dropping connections after 100+ CCU because buffer sizes #21
Comments
also imer: 500 ccu on linux kcp: https://share.dl.je/2021/06/2021-06-13_19-26-56_5ZDNb9zwiv.png
[19:33] imer: yep, thats not enough - dropping packets again |
options:
|
@miwarnec Hello. Is it possible to test the server on Linux and client that you used? where can I get it |
from discord:
to further this: https://stackoverflow.com/a/2290848
looking at the /proc/net/udp6 one I can see many drops while doing the stress test with 100 clients: https://share.dl.je/2021/06/2021-06-13_19-00-55_UwDiLFug52.mp4
increasing the kernel bufffers (/proc/sys/net/core/wmem_default/max and /proc/sys/net/core/rmem_default/max) by 100x (as a quick validation) fixed the issue - no more drops!
this is also reflected by the c# socket .Receive-/.SendBufferSize
KCP Receive/Send Buffer is: 21299200/21299200 - the _max doesn't change those. need to adjust _default for that
500 ccu on linux kcp: https://share.dl.je/2021/06/2021-06-13_19-26-56_5ZDNb9zwiv.png
The text was updated successfully, but these errors were encountered: