Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save archerslaw/11133723 to your computer and use it in GitHub Desktop.
Save archerslaw/11133723 to your computer and use it in GitHub Desktop.
virtio-nic multi-queue support - qemu-kvm
1.Boot the guest with multiple queues(queues=4) nic.
e.g:...-device virtio-net-pci,netdev=dev1,mac=9a:e8:e9:ea:eb:ec,id=net1,vectors=9,mq=on
-netdev tap,id=dev1,vhost=on,script=/etc/qemu-ifup-switch,queues=4
2.Using ethtool -L enable mq in guest
[Guest] # ethtool -L eth0 combined 4
3.Using ethtool -l eth0 can see the channel parameters of the interface like:
Pre-set maximums:
# ethtool -l eth0
Channel parameters for eth0:
Pre-set maximums:
RX: 0
TX: 0
Other: 0
Combined: 4
Current hardware settings:
RX: 0
4.[Guest] # ping host_ip
TX: 0
Other: 0
Combined: 4 ( equal to queues in command line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment