Linux 自用TCP调优参数 (In/Out 1Gbps)
其实我一直对 TCP
调优都停留在默认配置开 BBR。
直到遇到了服务商限速导致大文件下载过慢甚至断连,我还以为是本地运营商对我 QoS......(给运营商道个歉.jpg
参考了 nanase 大佬的配置。
路径 /etc/sysctl.conf
以下内容应该会实时更新:
net.core.default_qdisc = fq
net.core.rmem_max = 67108848
net.core.wmem_max = 67108848
net.core.somaxconn = 4096
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_rmem = 16384 16384 21250000
net.ipv4.tcp_wmem = 16384 87380 21250000
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_adv_win_scale = -2
net.ipv4.tcp_sack = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_fastopen = 3
kernel.panic = -1
vm.swappiness = 0
保存完毕之后:
sysctl -p
标签: none