问题小结
1、根据CPU核数及NUMA情况,结合网卡的所属numa节点,建议调小网卡队列数,调大网卡的ring buffer。
2、根据查看的./proc/net/softnet_stat情况,第三列的增加表明了软中断处理时间的不足,而 net.core.netdev_budget 参数的调整可以帮助提高在一个软中断周期内可以处理的数据包数量,从而改善性能。建议将net.core.netdev_budget调为1024。
3、发现irqbalance服务开启状态,建议关闭irqbalance服务。
相关建议
ethtool -L enp133s0f0 combined 24
ethtool -L enp134s0f0 combined 24
ethtool -G enp133s0f0 rx 8196 tx 8196
ethtool -G enp134s0f0 rx 8196 tx 8196
ethtool -K enp133s0f0 lro on
ethtool -K enp134s0f0 lro on
echo "net.core.netdev_budget=1024" >> /etc/sysctl.conf
sysctl -p
systemctl disable irqbalance --now |
---|