这个是默认的:
sysctl -w net.core.wmem_max=16777216
sysctl -w net.core.rmem_max=16777216
sysctl -w net.ipv4.tcp_wmem='4096 212992 16777216'
sysctl -w net.ipv4.tcp_rmem='4096 212992 16777216'
这个是优化过后的
sysctl -w net.core.wmem_max=33554432
sysctl -w net.core.rmem_max=33554432
sysctl -w net.ipv4.tcp_wmem='4096 425984 33554432'
sysctl -w net.ipv4.tcp_rmem='4096 425984 33554432'
sysctl -w net.ipv4.tcp_fastopen=1
不知道是心理作用还是啥,没执行前是稳定6-7W,执行过后到9W了