About multi-queue functionality
Use multi-queue functionality to scale network throughput and performance on virtual machines (VMs) with multiple vCPUs.
By default, the queueCount value, which is derived from the domain XML, is determined by the number of vCPUs allocated to a VM. Network performance does not scale as the number of vCPUs increases. Additionally, because virtio-net has only one transmit and receive queue, guests cannot send or receive packs in parallel.
Enabling virtio-net multi-queue does not offer significant improvements when the number of vNICs in a guest instance is proportional to the number of vCPUs.
Known limitations
- Message signaled interrupt (MSI) vectors are still consumed if
virtio-netmulti-queue is enabled in the host but not enabled in the guest operating system by the administrator. - Each
virtio-netqueue consumes 64 KiB of kernel memory for thevhostdriver.
Enable multi-queue for VirtIO network interfaces
You can enable multi-queue functionality for network interfaces that use a VirtIO model, so that network traffic is processed across multiple vCPUs instead of one.
Procedure
- Set the
networkInterfaceMultiqueuevalue totruein theVirtualMachinemanifest file of your VM to enable multi-queue functionality:apiVersion: kubevirt.io/v1kind: VMspec:domain:devices:networkInterfaceMultiqueue: true - Save the
VirtualMachinemanifest file to apply your changes.