mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
2101d8264c
and because of that we decided to set the recv buffer to 512kB via linux kernel parameters. We didn't had any problems on the official server so we wanted to bake that into code. There is a calculator https://www.switch.ch/network/tools/tcp_throughput/?mss=1460&rtt=80&loss=1e-06&bw=10&rtt2=500&win=1024&Calculate=Calculate that said for 10Mbits/ speed 16kB recv buffer and 500ms we only can expect effective 0.24 Mbits of actuall data speed. Nothing mentioned increasing the send buffer, but it prob cant hurt from a server side or ? cat /proc/sys/net/core/wmem_default showed 212992 cat /proc/sys/net/core/rmem_default showed 212992 sysctl -w net.ipv4.tcp_wmem="4096 524288 4194304" was beeing used sysctl -w net.ipv4.tcp_wmem="4096 16384 4194304" was the default |
||
---|---|---|
.. | ||
benches | ||
examples | ||
protocol | ||
src | ||
tests | ||
Cargo.toml |