This problem has persisted since I completed PCI passthrough,but I haven’t found a solution yet.I understand that there are many reasons for freeze,but there are too many factors that make it difficult for me to start. I would like to describe my situation and hope to get some troubleshooting methods and methods to try.
Frequency of occurrence:about two seconds every few to tens of minutes
describe:
- When the problem occurs, the entire vm win will be completely frozen, including animations,sounds and input system.
- When the freeze is over, everything will return to normal, such as local music continuing to play where it was frozen.
- When i am playing online games,operations during freezing will not take effect,fps will not change,however, after the freeze is over, there may be some delays in order to synchronize online progress.
some try:
– I’ve tried setting up huge pages,Not getting better.
– CPU pinning:This method may be a problem with my settings, because after I finished it, the vm was stuck all the time.So I canceled it right away.
– Check libvirtd.log/win10.log…To be honest, I don’t really understand these logs.I found a few errors, but judging from the frequency of freeze, they may not be relevant to my problem.
This is my configuration for single gpu passthrough.
CPU: Ryzen 5 5600X (6 cores 12 threads,10 threads for VM | When I only allocate 8 threads for vm, it becomes laggy)
GPU: RTX 4060ti
Kernel Version:5.15.0-91-generic
OS: Ubuntu 20.04 RAM:48GB TOTAL,16GB for VM
SSD:Samsung 980Pro
grub setting:
GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=on iommu=pt pcie_aspm=off vfio_iommu_type1.allow_unsafe_interrupts=1 vfio_pci.disable_vga=1 vfio_pci.disable_idle_d3=1 kvm.ignore_msrs=1 vfio-pci.ids=10de:2803"