欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Are VMDq and SR-IOV performing the same function?

程序员文章站 2022-06-09 08:09:24
...
A: Yes and no. Both Virtual Machine Device Queues (VMDq) and SR-IOV are technologies to improve the network performance for virtual machines (VMs) and to minimize the overhead and CPU bottlenecks on a VM manager such as the Hyper-V Windows Server management partition. However, they do it in different ways.

With VMDq, the VM manager can assign a separate queue in the network adapter to each VM, which removes overhead on the virtual switch sorting and routing for where the packets need to go. However, the VM manager and the virtual switch still have to copy the traffic from the VMDq to the VM, which, for Hyper-V, travels over the kernel-mode memory bus.

Additionally because there are multiple queues, the incoming load can be spread over multiple processor cores removing any potential processing bottleneck. VMDq reduces the work on the virtual switch and enables better scalability, but the traffic still flows through the virtual switch and over normal data transports (VMBus) as shown in the screen shot below.
Are VMDq and SR-IOV performing the same function?
            
    
    博客分类: 虚拟化  

SR-IOV works similarly to VMDq, but instead of creating a separate queue for each VM, it actually creates a separate Virtual Function (VF) that acts like a separate network device for each VM. The VM communicates directly with it, completely bypassing [绕过] the virtual switch and any load-copying data on the VM manager, since SR-IOV uses Direct Memory Accesss (DMA) between the VF and the VM.

SR-IOV offers the best network performance but requires support on the hypervisor, motherboard, and network adapter and might affect portability[移植性] of VMs between hardware capable of using SR-IOV and hardware incapable of using SR-IOV.
  • Are VMDq and SR-IOV performing the same function?
            
    
    博客分类: 虚拟化  
  • 大小: 133.7 KB