1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | net.ipv4.tcp_congestion_control = bbr net.core.default_qdisc = fq # Core memory defaults and maximums (Global caps) net.core.rmem_default = 262144 net.core.rmem_max = 134217728 net.core.wmem_default = 262144 net.core.wmem_max = 134217728 # TCP specific memory (Min, Default, Max aligned to core max) net.ipv4.tcp_rmem = 4096 131072 134217728 net.ipv4.tcp_wmem = 4096 131072 134217728 # This limits local queue latency to 16KB without killing throughput speed net.ipv4.tcp_notsent_lowat = 16384 # 自动减少缓冲区为原来的1/2以改善缓冲区膨胀 net.ipv4.tcp_adv_win_scale = 1 # 减少重传超时(高延迟链路需要更长的超时) net.ipv4.tcp_retries2 = 8 # 时间戳和窗口缩放(必须开启) net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_sack = 1 |