网卡优化

ethtool -C interfaces rx-usecs 1 tx-usecs 1 rx-frames 1 tx-frames 1
这个设置可能影响tcp性能,可以通过西面的tso来补偿
net.ipv4.tcp_tsc_win_divisor=30
查询是否开启 tso
ethtool -K eth0 tso on

巨帧的设置
sysctl net.ipv4.tcp_window_scaling =0(只对tcp win size > 2^16 起总用)
查看是否开启tcp_window_scaling
cat /proc/sys/net/ipv4/tcp_window_scaling.
ifconfig eht0 mtu 1500


net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.rmem_default = 600000
net.core.wmem_default = 600000
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_mem = 10000000 10000000 10000000
net.core.netdev_max_backlog = 600000
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_low_latency = 0
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 512
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_congestion_control = cubic



猜你喜欢

转载自blog.csdn.net/tiantao2012/article/details/80661981
今日推荐