I have successfully enable SR-IOV on kvm for ConnectX-3 with KVM (InfiniBand).Speeds up to 28.6Gb/s between guest hosts by using the iperf tool,but speeds up to 14Gb/s between virtual machines.I found that although the virtual machine shows multiple queues in /proc/interrupts,only one queue is actually available.I have configured smp_affinity and disable the irqbalance service.How to enable VF multi-queue for SR-IOV on KVM?
Thanks !
vm host:
[root@host-09 ~]# cat /proc/interrupts | grep mlx4
45: 106 52 58 59 59 59 54 55 PCI-MSI-edge mlx4-async@pci:0000:00:07.0
46: 2435659 2939965 41253 26523 49013 59796 56406 70341 PCI-MSI-edge mlx4-1@0000:00:07.0
47: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-2@0000:00:07.0
48: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-3@0000:00:07.0
49: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-4@0000:00:07.0
50: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-5@0000:00:07.0
51: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-6@0000:00:07.0
52: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-7@0000:00:07.0
53: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-8@0000:00:07.0
54: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-9@0000:00:07.0
55: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-10@0000:00:07.0
56: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-11@0000:00:07.0
57: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-12@0000:00:07.0
58: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-13@0000:00:07.0
59: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-14@0000:00:07.0
60: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-15@0000:00:07.0
61: 0 0 0 0 0 0 0 0 PCI-MSI-edge mlx4-16@0000:00:07.0
[root@host-09 ~]# cat /proc/irq/46/smp_affinity
02
[root@host-09 ~]# cat /proc/irq/47/smp_affinity
04
[root@host-09 ~]# cat /proc/irq/48/smp_affinity
08
[root@host-09 ~]# cat /proc/irq/49/smp_affinity
10
[root@host-09 ~]# cat /proc/irq/50/smp_affinity
20
[root@host-09 ~]# cat /proc/irq/51/smp_affinity
40
[root@host-09 ~]# cat /proc/irq/52/smp_affinity
80
[root@host-09 ~]# cat /proc/irq/53/smp_affinity
01
[root@host-09 ~]# cat /proc/irq/54/smp_affinity
02
[root@host-09 ~]# cat /proc/irq/55/smp_affinity
04
[root@host-09 ~]# cat /proc/irq/56/smp_affinity
08
[root@host-09 ~]# cat /proc/irq/57/smp_affinity
10
[root@host-09 ~]# cat /proc/irq/58/smp_affinity
20
[root@host-09 ~]# cat /proc/irq/59/smp_affinity
40
[root@host-09 ~]# cat /proc/irq/60/smp_affinity
80
[root@host-09 ~]# cat /proc/irq/61/smp_affinity
01
[root@host-09 ~]# ls -la /sys/class/net/ib0/queues/
total 0
drwxr-xr-x 4 root root 0 Jun 26 12:11 .
drwxr-xr-x 5 root root 0 Jun 26 12:11 …
drwxr-xr-x 2 root root 0 Jun 26 12:11 rx-0
drwxr-xr-x 3 root root 0 Jun 26 12:11 tx-0