KVM VM set net moel virtio and mulltiqueues
- check
$ qemu-kvm -net nic,model=help
qemu: Supported NIC models: ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
- edit
# virsh edit vm01
<interface type='bridge'>
<mac address='52:54:00:de:fd:d3'/>
<source bridge='virbr0'/>
<model type='virtio'/> # alter here
<driver name='vhost' queues='4'/> # and here
-
shutdown vm and wait
virsh shutdown vm01 -
start vm and check result
[ec2-user@vm01 ~]$ cat /proc/interrupts | egrep "in|out" | grep virtio
27: 67 0 0 0 0 0 0 5632 PCI-MSI 49153-edge virtio0-input.0
28: 1 0 0 0 0 0 0 0 PCI-MSI 49154-edge virtio0-output.0
29: 27 0 0 0 0 5757 0 0 PCI-MSI 49155-edge virtio0-input.1
30: 1 0 0 0 0 0 0 0 PCI-MSI 49156-edge virtio0-output.1
31: 5948 0 0 0 0 0 0 0 PCI-MSI 49157-edge virtio0-input.2
32: 1 0 0 0 0 0 0 0 PCI-MSI 49158-edge virtio0-output.2
33: 24 0 0 0 0 0 0 7355 PCI-MSI 49159-edge virtio0-input.3
34: 1 0 0 0 0 0 0 0 PCI-MSI 49160-edge virtio0-output.3
[ec2-user@api irq]$ cat {27,28,29,30,31,32,33,34}/smp_affinity_list
7
2
5
3
0
1
7
6

浙公网安备 33010602011771号