veloren/network
Marcel Märtens 2101d8264c xVAR did some research here: https://discord.com/channels/449602562165833758/450065987006496768/979121835801202688
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
2023-07-04 23:48:59 +02:00
..
benches Reduce overhead of messaging systems. 2022-09-14 21:04:53 -07:00
examples update further dependencies 2023-05-04 23:42:05 +02:00
protocol use workspace dependencies to make our life easier maintaining them :) 2023-05-10 18:16:25 +02:00
src xVAR did some research here: https://discord.com/channels/449602562165833758/450065987006496768/979121835801202688 2023-07-04 23:48:59 +02:00
tests Reduce overhead of messaging systems. 2022-09-14 21:04:53 -07:00
Cargo.toml use workspace dependencies to make our life easier maintaining them :) 2023-05-10 18:16:25 +02:00