来源于Pro wee 其它自测
# 查看网络缓冲区与连接队列配置
sysctl net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.core.rmem_max net.core.wmem_max net.core.somaxconn net.core.netdev_max_backlog net.ipv4.tcp_max_syn_backlog
net.ipv4.tcp_rmem = 4096 131072 6291456
net.ipv4.tcp_wmem = 4096 16384 4194304
net.core.rmem_max = 212992
net.core.wmem_max = 212992
net.core.somaxconn = 4096
net.core.netdev_max_backlog = 1000
net.ipv4.tcp_max_syn_backlog = 128
cat >/etc/sysctl.d/99-network-optimize.conf <<'EOF'
TCP buffer
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
connection queue
net.core.somaxconn = 65535
net.core.netdev_max_backlog = 250000
net.ipv4.tcp_max_syn_backlog = 65535
TCP performance
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_moderate_rcvbuf = 1
reduce TIME_WAIT pressure
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_tw_reuse = 1
BBR
net.ipv4.tcp_congestion_control = bbr
net.core.default_qdisc = fq
EOF
sysctl --system
@ff1018ff #1 默认模板没debian12的激进了,默认开启了bbr,大妈应该是调过参数了
@AgentNull #2
这个新默认参数最大的问题是,单线程到大陆锁死200mbps,最好调一下wmem_max
@k2think #3 美西gia单线程就是限速的,我重装后发现y2b现在速度比之前好上不少,应该重传低了