中美线路200延迟情况下单线程的速度较低,尝试了一下效果,发现有一定作用。记录一下参数、

将以下参数调价到/etc/sysctl.conf

net.ipv4.tcp_slow_start_after_idle = 0
net.core.optmem_max = 204800
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_sack = 1
net.core.netdev_max_backlog = 40000
net.core.rmem_default = 14848000
net.core.rmem_max = 29696000
net.core.somaxconn = 20000
net.core.wmem_default = 14848000
net.core.wmem_max = 29696000
net.ipv4.tcp_ecn = 0
net.ipv4.tcp_max_tw_buckets = 10000
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_rmem = 40960 873800 67108864
net.ipv4.tcp_wmem = 40960 655360 67108864
net.core.default_qdisc = cake
net.ipv4.tcp_congestion_control = bbr

然后使用sysctl -p 保存

两端都要使用此参数