| 域侧 | <driver name='vhost' queues='4'/> |
|---|---|
| guest 侧 | ethtool -L eth0 combined 4 |
| 查看 | ethtool -l eth0 / virsh dumpxml 查 queues |
| 前提 | vCPU 数量与队列数匹配、网卡为 virtio |
guest 内查看与设置
guest 内查看与设置
ethtool -l eth0 # 当前与可设上限
ethtool -L eth0 combined 4
ethtool -S eth0 | head队列数不超过 vCPU 数通常更划算,超过后中断处理开销上升。