sar -n DEV 1
vnstat -i eth2 -l
netperf测试
netserver 服务端
netperf -H 172.22.3.9 -t TCP_STREAM -l 100 -- -m 64k & 用户端
关闭多队列
rmmod ixgbe
modprobe ixgbe MQ=1,0(表示第一个网口开着,第二个网口关着)
查看多队列
cat /proc/interrupts
关闭大包功能
ethtool -K eth3 tso off (发送大包数据,针对TCP,在IP层不拆包,放在网卡出口处拆包)
ethtool -K eth3 gso off (不仅仅针对TCP,是TSO的扩展,需要同时支持SG才生效)
ethtool -K eth3 sg off
ethtool -K eth3 gro off (lro的增强版)
ethtool -K eth3 lro off(接收大包数据,只支持tcp)
查看是否关闭:ethtool -k eth2
监控网络流量(可以看包大小):tcpdump -i eth3 -e -n
查看中断数
cat /proc/interrupts