跳到主要内容

分享 VPS TCP 调优

  • 新帖
  • 热门
  • 精选

分享 VPS TCP 调优

leonseason 1y ago in 技术 · 0 views
实例用的是凤凰城G口VPS,安装iperf3并运行 iperf3 -s -D
#编辑/etc/sysctl.conf
nano /etc/sysctl.conf
#TCP调优
net.ipv4.tcp_rmem=4096 16384 9000000
net.ipv4.tcp_wmem=4096 87380 9000000
#关闭IPV6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
#开启BBR
net.ipv4.tcp_congestion_control=bbr
net.core.default_qdisc=fq

#执行即时生效
sysctl -p
客户端执行iperf3 -c www.vpsip.com -R
当使用
net.ipv4.tcp_rmem=4096 16384 7000000
net.ipv4.tcp_wmem=4096 87380 7000000
iperf3 380Mbps Retr 0丢包
当使用
net.ipv4.tcp_rmem=4096 16384 13000000
net.ipv4.tcp_wmem=4096 87380 13000000
iperf3 680Mbps Retr 800+丢包
当使用
net.ipv4.tcp_rmem=4096 16384 10000000
net.ipv4.tcp_wmem=4096 87380 10000000
iperf3 580Mbps Retr 0丢包

TCP调优可优化单线程速率,稳定Retr数据包重发概率

在华为新加坡/甲骨文某些线路有奇效

我看很少帖子分享这方面信息。可能不是最优解 大家可以一起讨论

jatwu #1 2025年01月12日

学习一下

回复此楼 修改
收到新回复,点击立即加载
需要 登录 后方可回复, 如果你还没有账号请 注册新账号
leonseason
@leonseason
统计信息
会员
1,786
话题
259
回帖
2,955
活跃会员 查看排行
Devin
Koguan
nt01xp
jmk92
859876741
kewycjy
cnvc
kkk00011
0xyyyy
wayne630
zf7222749
zmy123
Unlovely
bos5201314
scjxx
once
wykds
LeoXD
a15ban
gally

A digital lifestyle community co-maintained by Pixer

本网站服务器由 提供,CDN 由 提供,基于 Homeland 构建,采用 Docker 部署。