5/18/2023 0 Comments Vm work clock![]() ![]() The cores attribute doesn’t but we will talk about it later. Now, for the guest topology config, the sockets, dies and threads attributes of the topology tag must match your physical CPU. If you disable all CPU emulation and pass the CPU as-is to the VM using the “host-passthrough” mode then your performance will be as close to bare metal as can be for CPU bound tasks. The CPU mode you pick will be one of the biggest factor in CPU related performance. 2 - Guest CPU Optimization 2.1- CPU mode, topology Note that kernels version 5.11+ have issues with GVT-G/GVT-D and will tend to freeze up. ![]() Hardware CPU: i9–9880H GPU: Quadro T1000 Mobile IGPU: Intel UHD 630 Software Distribution: Manjaro XFCE Libvirt: 7.9.0 QEMU: 6.1.0 Kernel: 5.15.2 Kernel Parameters: - preempt=voluntary - intel_iommu=on - iommu.passthrough=1 - vfio-pci.ids=10de:1b80 Virtualization Setup Disk: RAW & NVME PCI Passthrough Hypervisor: KVM Chipset:Q35 Firmware: UEFI x86_64 | OVMF CPU: Host passthrough with manual, no emulation IGPU: GVT-G Passthrough GPU: PCIe Passthrough Network: virtio NAT, Linked Input Method: Spice Display: Looking Glass B4 & Spice W/O Graphics Video: None Controllers: USB, PCIe, PCI, VirtIO 1.3 - Kernel VersionsĪs of December 2021, I found that the kernel offering the best performance and easiest setup is version 5.15.2. The reference setup is describe in details with instruction on how to reproduce it in this article. 1.1 - Prerequisites Mandatory - Working Windows 10 or Windows 11 Guest - CPU supporting VT-D or AMD-Vi - Kernel: 5.8 + - QEMU 6+ - Libvirt 7+ - KVM Optional - Working GPU Passthrough - Kernel 5.15+ (Best performances) - Kernel 5+ Compiled with voluntary Preemption 1.2 - Reference Setup That said, if you want to get closer to bare metal speeds, you will need to perform several interventions on your guest and host alike. Without tuning your VM, you may experience stuttering, high CPU usage and slow interrupts and I/O but it may still be usable. Notes 6.1 Conclusion 6.2 Sources Last Update: 2022–09–26 1 -Preamble & Prerequisites Other Improvements 5.1 Improving the boot time of your machine 5.2 Enabling hugepages 6. I/O Optimization 4.1 Virtio drivers 4.2 Disable caching for RAW disks 4.3 Enabling TRIM 5. This guide is a collection of the all interventions I could find on wikis, forums and blogs that had a measurable impact on guest performance benchmarks. This guide is intended for existing KVM/QEMU Libvirt setups and will help you reach near native performance on your Windows 10 or 11 Guest. Improving the performance of a Windows Guest on KVM/QEMU ![]()
0 Comments
Leave a Reply. |