Updated Performance Tuning (markdown)

klzgrad 2024-08-18 10:59:56 +08:00
parent a98a97b7c6
commit a737ca422d

@ -4,7 +4,7 @@
BDP (byte) = Link speed (bit/s) * RTT (s) / 8 (bit/byte). Under the default effect of `net.ipv4.tcp_adv_win_scale`, BDP * 2 should be a good setting for maximum receive buffer size. BDP (byte) = Link speed (bit/s) * RTT (s) / 8 (bit/byte). Under the default effect of `net.ipv4.tcp_adv_win_scale`, BDP * 2 should be a good setting for maximum receive buffer size.
Example: Assuming 1Gbps link with 256ms RTT, it's a 32MiB maximum window size requiring 64MiB maximum buffer size. Add `net.ipv4.tcp_rmem = 4096 131072 67108864` to client-side sysctl.conf, `net.ipv4.tcp_wmem = 4096 131072 67108864` to server-side sysctl.conf. Example: Assuming 1Gbps link with 256ms RTT, it's a 32MiB maximum window size requiring 64MiB maximum buffer size. Add to sysctl.conf: (Client only) `net.ipv4.tcp_rmem = 4096 131072 67108864`; (Server only) `net.ipv4.tcp_wmem = 4096 131072 67108864`.
BBR should be able to auto-tune the window size to reduce bufferbloat. BBR should be able to auto-tune the window size to reduce bufferbloat.