![]() Increasing -smuxbuf to a larger value (default 4MB) may mitigate this problem, obviously this will costs more memory.įor versions >= v20190924, you can switch to smux version 2, smux v2 has options to limit per-stream memory usage, now set -smuxver 2 to enable smux v2, and adjust -streambuf to limit per-stream memory usage, eg: -streambuf 2097152 can limit per-stream memory usage to 2MB. Since streams are multiplexed into a single physical channel, head of line blocking may appear under certain circumstances, by Q: I'm using kcptun for game, I don't want any lag happening.Ī: Lag means packet loss for most of the time, lags can be improved by changing -mode.Īggresiveness/Responsiveness on retransmission for embeded modes are:įast3 > fast2 > fast > normal > default HOLB (mtu is adjustable by -mtu) Improving Latency Q: I have a high speed network link, how to reach the maximum bandwidth?Ī: Increase -rcvwnd on KCP Client and -sndwnd on KCP Server simultaneously & gradually, the mininum one decides the maximum transfer rate of the link, as wnd * mtu / rtt Then try downloading something and to see if it meets your requirements. Practical bandwidth graph with parameters: -mode fast3 -ds 10 -ps 3 Basic Tuning Guide Improving Thoughput ![]() All precompiled releases are genereated from build-release.sh script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |