查看与调整
查看与调整
ethtool -g eth0 # 当前 ring 大小(RX/TX)
ethtool -G eth0 rx 4096 tx 4096 # 调大(按驱动支持上限)
ethtool -l eth0 && ethtool -L eth0 combined 8 # 多队列分配(可选)
mpstat -P ALL 1 3 # 观察软中断集中与 CPU 饱和
cat /proc/interrupts | grep eth0调 ring 前先确认丢包类型(ip -s link 的 dropped vs ethtool -S 的 rx_missed/rx_no_buffers);不同驱动命名不同,按语义判断。