标签 TCP调参 下的文章

TCP调优

https://omnitt.com/ TCP 迷之调参
https://tcp-cal.mereith.com/ TCP缓冲区计算器
https://qing.su/sysctl sysctl.conf 自动优化
https://www.nodeseek.com/post-197087 手把手教你TCP调优
搬瓦工默认bbr

net.ipv4.neigh.default.base_reachable_time_ms = 600000
net.ipv4.neigh.eth1.delay_first_probe_time = 1
net.ipv4.neigh.default.mcast_solicit = 20
net.ipv4.neigh.default.retrans_time_ms = 250
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.eth0.rp_filter=0
net.ipv4.conf.eth1.rp_filter=0
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.ipv4.tcp_fastopen=3

大妈自带tcp调优参数

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 16777216 536870912
net.ipv4.tcp_wmem = 16384 16777216 536870912
net.ipv4.tcp_adv_win_scale = -2
net.ipv4.tcp_sack = 1
net.ipv4.tcp_timestamps = 1
kernel.panic = -1
vm.swappiness = 0

tcp调优通用

net.ipv6.conf.default.disable_ipv6 = 1
net.ipv4.tcp_fastopen=3
net.ipv4.tcp_fastopen_blackhole_timeout_sec=0
net.ipv4.tcp_slow_start_after_idle=0
#net.ipv4.tcp_collapse_max_bytes=6291456
#net.ipv4.tcp_notsent_lowat=16384
#net.ipv4.tcp_notsent_lowat=4294967295
net.ipv4.tcp_syn_retries=3
net.ipv4.tcp_moderate_rcvbuf=1
net.ipv4.tcp_adv_win_scale=1
net.ipv4.tcp_rmem=4096 26214400 104857600
net.ipv4.tcp_wmem=4096 26214400 104857600
net.core.rmem_default=26214400
net.core.wmem_default=26214400
net.core.rmem_max=104857600
net.core.wmem_max=104857600
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr