GPU Passthrough low fps/sluggish until some user input

Jamie

Active Member
May 18, 2018
22
1
41
28
Hello, I am trying to passthrough a gpu to a windows 10 vm

System:
- Gigabyte x79 ud3
- E5 2690
- 1080ti
- proxmox 7.3-3
- 32gb DDR3
- enabled vt-d and everything else that is required for iommu.


I followed the tutorial located here: https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/

The vm will boot just fine, device manager shows everything is fine, I installed the nvidia driver with no issues.
Everything seems to work normally.
EXCEPT, that anything on the display seems to lag about 1 frame every 5 seconds unless you do some sort of user input like move the mouse or press a button on the keyboard. if I continuously wiggle the mouse it refreshes the screen and looks normal. the mouse moves normally, its everything behind the mouse that lags.

I've tried using romfile, pcie / no pcie, using DDU installing the latest nvidia driver. nothing seems to work.



I am booting from CMD line:
Code:
root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet intel_iommu=on iommu=pt vfio_pci.ids=10de:1b06,10de:10ef initcall_blacklist=sysfb_init

/etc/modules
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
simplefb

/etc/modprobe.d/iommu_unsafe_interrupts.conf
Code:
options vfio_iommu_type1 allow_unsafe_interrupts=1

/etc/modprobe.d/kvm.conf
Code:
options kvm ignore_msrs=1

/etc/modprobe.d/blacklist.conf
Code:
blacklist nvidia
blacklist mptsas
blacklist nouveau
blacklist nvidiafb

/etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=10de:1b06,10de:10ef disable_vga=1


VM Config
Code:
balloon: 0
bios: seabios
boot: order=ide0
cores: 10
hostpci0: 0000:01:00,pcie=1
ide0: local-zfs:vm-101-disk-0,cache=writeback,size=64G
machine: pc-q35-7.1
memory: 16384
meta: creation-qemu=7.1.0,ctime=1679167444
name: Windows10
net0: e1000=C2:C9:B2:17:7A:52,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsihw: virtio-scsi-single
smbios1: uuid=baaa1f21-8b2d-4247-9d6f-9619ca99f18b
sockets: 1
tablet: 0
usb0: host=046d:c52b
vmgenid: c4688a85-406a-48e0-a174-3a667e324e7b
 
Hm, never did GPU passthrough, so this may make no sense.. but did you check power saving settings on hardware this is running on?
I checked and didn't see anything for power saving that is enabled.
 
I tried using DDU to uninstall any graphics driver and reinstall the latest nvidia driver. Still no luck. Has anyone every experienced this issue?
 
I’m having the exact same issue. I’ve tried multiple guides and remakes of the VM. I’ve also noticed it’s laggier once the GPU is passed through instead of using the virtual display adapter. The main differences I have are that my BIOS is UEFI and using a GTX 970, but still same issue. Did you ever find a solution?
 
i had 3 VGA in my homelab system, CPU 12400 with built in iGPU, a GTX1660S and a RTX2060
1702617446696.png


Intel iGPU based on Alderlake (aka SRVIO that not working as expected to have HDMI output), but recently i had successfully make Alderlake with HDMI out working perfectly. you may refer here:

https://forum.proxmox.com/threads/a...-working-with-hdmi-output.138049/#post-615315

another two VGA i have is a nvidia 2060 and 1660s, but passthrough to 2 windows and running perfectly.

machine 1. windows 11 + 1660s with HDMI output, video acceleration.
1702617254141.png

machine 2. windows 11 + RTX2060 with HDMI output, video acceleration, i am using this machine to play game on my living room TV.
1702617388369.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!