Ubuntu 18.04 , Ryzen 2700x VFIO Passthrough performance issues

I created windows 10 1709 VM and have 1080Ti passthrough with few USB ports , Ryzen host CPU , separate USB audio card, xbox 360 wifi controllers, separate monitor 1440p60Hz

When i do cinebench test it is flawless and fast ~1730 CPU , 3dmark GPU Timespy score is ~9300 , Firestrike test crashed.

VM game results: Battlefront 2 with ~15 FPS , Witcher 3 ~15 FPS with huge drops, Starcraft 2 ~100FPS , HoTS ~100 FPS with some drops to ~50.
Bare metal windows 10 results: Battlefront 2 with ~100+ FPS , Witcher 3 ~80-115 FPS,Starcraft 2 ~100+FPS , HoTS ~120-250 FPS

All tests are on stock clock CPU and GPU , Memory is in XMP @3000MHz , Rzyen 2700x, Crosshair Hero VII , 2x1080Ti ROG Strix Gaming OC. Ubuntu 18.04 with kernel 4.18.

I disabled NPT and got awful CPU speed but got following results GPU:
Battlefront 2 with ~20-65 FPS , Witcher 3 ~70 FPS with huge drops, Starcraft 2 ~100FPS , HoTS ~120 FPS with some drops to ~50.

I am not @ PC atm but can add every bit of needed configuration just let me know.
I am actually linux sysadmin with lots of XP but not with linux gaming and AMD (first ever amd product) , my work virtualization is mostly proxmox on blades and supermicro headless , cli only and intel only. I actually have supermicro server at home with proxmox for all my inhouse needs too.

I was hoping i could use Linux @ home without booting into windows for gaming.

Also my 2 GPU’s have indentical ID’s so i had to reserve the second GPU via driver_override .

Thanks in advance guys , love the forum so far.

my virsh xml :
<domain type='kvm'> <name>win10_glavni</name> <uuid>383a7493-071e-4431-817c-da885f279fa8</uuid> <memory unit='KiB'>10264576</memory> <currentMemory unit='KiB'>10264576</currentMemory> <vcpu placement='static'>10</vcpu> <os> <type arch='x86_64' machine='pc-q35-2.11'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <nvram>/var/lib/libvirt/qemu/nvram/win10_glavni_VARS.fd</nvram> <boot dev='hd'/> <bootmenu enable='yes'/> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='whatever'/> </hyperv> <kvm> <hidden state='on'/> </kvm> <vmport state='off'/> </features> <cpu mode='host-passthrough' check='none'> <topology sockets='1' cores='5' threads='2'/> </cpu> <clock offset='localtime'> <timer name='rtc' tickpolicy='catchup'/> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> <timer name='hypervclock' present='yes'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <pm> <suspend-to-mem enabled='no'/> <suspend-to-disk enabled='no'/> </pm> <devices> <emulator>/usr/bin/kvm-spice</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/mnt/Virtualke/win10_glavni.qcow2'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/home/sglumac/Downloads/Win10_1709_English_x64.iso'/> <target dev='sda' bus='sata'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/home/sglumac/Downloads/virtio-win-0.1.141.iso'/> <target dev='sdb' bus='sata'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/> </controller> <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <controller type='pci' index='0' model='pcie-root'/> <controller type='pci' index='1' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='1' port='0x10'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/> </controller> <controller type='pci' index='2' model='dmi-to-pci-bridge'> <model name='i82801b11-bridge'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/> </controller> <controller type='pci' index='3' model='pci-bridge'> <model name='pci-bridge'/> <target chassisNr='3'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> </controller> <controller type='pci' index='4' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='4' port='0x11'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/> </controller> <controller type='pci' index='5' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='5' port='0x12'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/> </controller> <controller type='pci' index='6' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='6' port='0x13'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/> </controller> <controller type='pci' index='7' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='7' port='0x14'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/> </controller> <controller type='pci' index='8' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='8' port='0x15'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/> </controller> <controller type='pci' index='9' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='9' port='0x16'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/> </controller> <controller type='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/> </controller> <interface type='network'> <mac address='52:54:00:01:e8:99'/> <source network='default'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface> <serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='spicevmc'> <target type='virtio' name='com.redhat.spice.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='spice' autoport='yes'> <listen type='address'/> <gl enable='no' rendernode='/dev/dri/by-path/pci-0000:09:00.0-render'/> </graphics> <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x03' slot='0x01' function='0x0'/> </sound> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </video> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/> </hostdev> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x0a' slot='0x00' function='0x1'/> </source> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </hostdev> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x0b' slot='0x00' function='0x3'/> </source> <address type='pci' domain='0x0000' bus='0x09' slot='0x00' function='0x0'/> </hostdev> <redirdev bus='usb' type='spicevmc'> <address type='usb' bus='0' port='2'/> </redirdev> <redirdev bus='usb' type='spicevmc'> <address type='usb' bus='0' port='3'/> </redirdev> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/> </memballoon> </devices> </domain>

Kernel : 4.18.0-13-generic

/etc/default/grub : GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt rd.driver.pre=vfio-pci kvm_amd.npt=1"

/etc/modprobe.d/vfio.conf : install vfio-pci /sbin/vfio-pci-override-vga.sh options vfio-pci ids=1022:145f

/sbin/vfio-pci-override-vga.sh : echo "vfio-pci" > /sys/devices/pci0000:00/0000:00:03.2/0000:0a:00.0/driver_override modprobe -i vfio-pci
/etc/modules-load.d/vfio-pci.conf : vfio-pci

/etc/dracut.conf.d/vfio.conf : add_drivers+=" vfio vfio_iommu_type1 vfio_pci vfio_virqfd " install_items+=" /sbin/vfio-pci-override-vga.sh /usr/bin/find /usr/bin/dirname "

Is your VM using the 1080ti? I mean graphics drivers installed and all?

Hi thanks for fast reply :slight_smile: , yes I installed GPU , removed the code 43 error and can OC it with afterburner and have latest drivers and geforce experience. 3D Mark Timespy score was almost baremetal. That is why this performance issue is weird , I guess kernel and Ryzen have many issues. Any idea?

Anyone ? I hope thread will not be forgotten.

What are you using for storage? Can you switch to raw? Qcow2 is not multithreaded iirc and may be the source of your terrible performance.

This system should rock for vfio. I always pass through a raw device or partition if I can.

I try to pin the CPUs as well so that the VM always lives on the same CPUs.

Hi Wendell thanks for replying.
Host system has 860 EVO 512GB and Guest has separate 860 EVO but with qcow2 for snapshots and easy backup. I can try raw but since i got more than double GPU game performance when i disabled NPT I am inclined to think it is not storage related .

I will pin the cpu , do you have tested pinout for 2700x maybe ? Not sure what is the optimal cache pinout?

I did a setup similar to this on a 2700x and it worked great. Used SATA for Linux and nvme passthrough for windows. No issues. Any output from dmesg? Maybe have to disable pcie aspm?

You can try to check VRAM frequency with GPU-Z or Afterburner while gaming, maybe it’s an issue of kvm pci-e link negotiation.

Hi , so i made cpu pin modifications :

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<vcpu placement='static'>8</vcpu>   
<iothreads>1</iothreads>   
<cputune>     
   <vcpupin vcpu='0' cpuset='8'/>     
   <vcpupin vcpu='1' cpuset='9'/>     
   <vcpupin vcpu='2' cpuset='10'/>     
   <vcpupin vcpu='3' cpuset='11'/>     
   <vcpupin vcpu='4' cpuset='12'/>     
   <vcpupin vcpu='5' cpuset='13'/>     
   <vcpupin vcpu='6' cpuset='14'/>     
   <vcpupin vcpu='7' cpuset='15'/>     
   <emulatorpin cpuset='0-1'/>     
   <iothreadpin iothread='1' cpuset='0-1'/>   
</cputune>
<cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
    <cache level='3' mode='emulate'/>
  </cpu> 

I also removed spice and QXL from VM and using only monitor and separate peripherals.

I can now see correct score in cinebench (for 8 cores instead of all 16).
Also when starting Battlefront2 and Withcer 3 i get normal FPS.

I checked with afterburner and GPU-Z , seems ok BUT

Now games and 3dMark crash after few seconds/minutes with only error in windows log
"Display driver nvlddmkm stopped responding and has successfully recovered."

I followed the procedure on forums (set nvidia to performance state in windows , set windows power state to performance , removed drivers , installed older 399.24 drivers) , nothing helps , what helped was downclocking GPU core and memory for 100 each (did not test longer than 10 minutes) but that is not optimal since i usually OC it.

Dmesg :

[sij10 13:00] kauditd_printk_skb: 31 callbacks suppressed
[  +0,000002] audit: type=1400 audit(1547121636.128:43): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=4900 comm="apparmor_parser"
[  +0,293835] xhci_hcd 0000:0b:00.3: remove, state 4
[  +0,000007] usb usb6: USB disconnect, device number 1
[  +0,000211] xhci_hcd 0000:0b:00.3: USB bus 6 deregistered
[  +0,000006] xhci_hcd 0000:0b:00.3: remove, state 1
[  +0,000004] usb usb5: USB disconnect, device number 1
[  +0,000002] usb 5-3: USB disconnect, device number 2
[  +0,000664] usb 5-4: USB disconnect, device number 3
[  +0,287900] xhci_hcd 0000:0b:00.3: USB bus 5 deregistered
[  +0,175102] audit: type=1400 audit(1547121636.888:44): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=4948 comm="apparmor_parser"
[  +0,144087] audit: type=1400 audit(1547121637.032:45): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=4954 comm="apparmor_parser"
[  +0,143527] audit: type=1400 audit(1547121637.172:46): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=4957 comm="apparmor_parser"
[  +0,017593] virbr0: port 2(vnet0) entered blocking state
[  +0,000002] virbr0: port 2(vnet0) entered disabled state
[  +0,000051] device vnet0 entered promiscuous mode
[  +0,000173] virbr0: port 2(vnet0) entered blocking state
[  +0,000002] virbr0: port 2(vnet0) entered listening state
[  +0,157916] audit: type=1400 audit(1547121637.348:47): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=4995 comm="apparmor_parser"
[  +1,416508] vfio-pci 0000:0a:00.0: enabling device (0000 -> 0003)
[  +0,000268] vfio_ecap_init: 0000:0a:00.0 hiding ecap 0x19@0x900
[  +0,039732] vfio-pci 0000:0b:00.3: enabling device (0000 -> 0002)
[  +0,387991] virbr0: port 2(vnet0) entered learning state
[  +2,016146] virbr0: port 2(vnet0) entered forwarding state
[  +0,000001] virbr0: topology change detected, propagating
[sij10 13:01] usb 1-7: USB disconnect, device number 2
[  +0,348921] usb 1-8: USB disconnect, device number 3
[sij10 14:58] usb 1-8: new full-speed USB device number 5 using xhci_hcd
[  +0,608647] usb 1-8: New USB device found, idVendor=0951, idProduct=16a4, bcdDevice= 0.03
[  +0,000003] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0,000002] usb 1-8: Product: HyperX 7.1 Audio
[  +0,000001] usb 1-8: Manufacturer: Kingston
[  +0,000002] usb 1-8: SerialNumber: 00000000
[  +0,139727] usb 1-8: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[  +0,000003] usb 1-8: [11] FU [Sidetone Playback Volume] ch = 1, val = 0/4096/1
[  +0,283954] input: Kingston HyperX 7.1 Audio Consumer Control as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.0007/input/input30
[  +0,059775] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.0007/input/input31
[  +0,000083] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.0007/input/input32
[  +0,000115] hid-generic 0003:0951:16A4.0007: input,hiddev0,hidraw0: USB HID v1.11 Device [Kingston HyperX 7.1 Audio] on usb-0000:01:00.0-8/input3
[  +1,303668] usb 1-7: new full-speed USB device number 6 using xhci_hcd
[  +0,424926] usb 1-7: New USB device found, idVendor=046d, idProduct=c22d, bcdDevice= 1.65
[  +0,000003] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0,000002] usb 1-7: Product: G510 Gaming Keyboard
[  +0,000001] usb 1-7: Manufacturer: Logitech
[  +0,028382] input: Logitech G510 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-7/1-7:1.0/0003:046D:C22D.0008/input/input33
[  +0,058924] hid-generic 0003:046D:C22D.0008: input,hidraw1: USB HID v1.11 Keyboard [Logitech G510 Gaming Keyboard] on usb-0000:01:00.0-7/input0
[  +0,025089] input: Logitech G510 Gaming Keyboard Consumer Control as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-7/1-7:1.1/0003:046D:C22D.0009/input/input34
[  +0,058850] hid-generic 0003:046D:C22D.0009: input,hiddev1,hidraw2: USB HID v1.11 Device [Logitech G510 Gaming Keyboard] on usb-0000:01:00.0-7/input1
[ +38,830494] usb 1-8: USB disconnect, device number 5
[sij10 14:59] usb 1-8: new full-speed USB device number 7 using xhci_hcd
[  +0,607758] usb 1-8: New USB device found, idVendor=0951, idProduct=16a4, bcdDevice= 0.03
[  +0,000003] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0,000002] usb 1-8: Product: HyperX 7.1 Audio
[  +0,000002] usb 1-8: Manufacturer: Kingston
[  +0,000001] usb 1-8: SerialNumber: 00000000
[  +0,140004] usb 1-8: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[  +0,000003] usb 1-8: [11] FU [Sidetone Playback Volume] ch = 1, val = 0/4096/1
[  +0,283991] input: Kingston HyperX 7.1 Audio Consumer Control as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000A/input/input36
[  +0,060330] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000A/input/input37
[  +0,000089] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000A/input/input38
[  +0,000268] hid-generic 0003:0951:16A4.000A: input,hiddev0,hidraw0: USB HID v1.11 Device [Kingston HyperX 7.1 Audio] on usb-0000:01:00.0-8/input3
[  +5,940152] usb 1-8: USB disconnect, device number 7
[ +12,491232] usb 1-8: new full-speed USB device number 8 using xhci_hcd
[  +0,543035] usb 1-8: New USB device found, idVendor=0951, idProduct=16a4, bcdDevice= 0.03
[  +0,000003] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0,000002] usb 1-8: Product: HyperX 7.1 Audio
[  +0,000001] usb 1-8: Manufacturer: Kingston
[  +0,000002] usb 1-8: SerialNumber: 00000000
[  +0,140004] usb 1-8: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[  +0,000003] usb 1-8: [11] FU [Sidetone Playback Volume] ch = 1, val = 0/4096/1
[  +0,284019] input: Kingston HyperX 7.1 Audio Consumer Control as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000B/input/input39
[  +0,057094] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000B/input/input40
[  +0,000127] input: Kingston HyperX 7.1 Audio as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.3/0003:0951:16A4.000B/input/input41
[  +0,000111] hid-generic 0003:0951:16A4.000B: input,hiddev0,hidraw0: USB HID v1.11 Device [Kingston HyperX 7.1 Audio] on usb-0000:01:00.0-8/input3
^[[B^[[B^[[B^[[B[sij10 15:03] virbr0: port 2(vnet0) entered disabled state
[  +0,001630] device vnet0 left promiscuous mode
[  +0,000005] virbr0: port 2(vnet0) entered disabled state
[  +1,632991] audit: type=1400 audit(1547129007.476:48): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="libvirt-383a7493-071e-4431-817c-da885f279fa8" pid=7032 comm="apparmor_parser"
[  +0,021282] snd_hda_intel 0000:0a:00.1: Disabling MSI
[  +0,000008] snd_hda_intel 0000:0a:00.1: Handle vga_switcheroo audio client
[  +0,023851] xhci_hcd 0000:0b:00.3: enabling device (0000 -> 0002)
[  +0,000214] xhci_hcd 0000:0b:00.3: xHCI Host Controller
[  +0,000006] xhci_hcd 0000:0b:00.3: new USB bus registered, assigned bus number 5
[  +0,000098] xhci_hcd 0000:0b:00.3: hcc params 0x0270f665 hci version 0x100 quirks 0x0000000000000410
[  +0,000362] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[  +0,000002] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  +0,000002] usb usb5: Product: xHCI Host Controller
[  +0,000003] usb usb5: Manufacturer: Linux 4.18.0-13-generic xhci-hcd
[  +0,000001] usb usb5: SerialNumber: 0000:0b:00.3
[  +0,000139] hub 5-0:1.0: USB hub found
[  +0,000008] hub 5-0:1.0: 4 ports detected
[  +0,000229] xhci_hcd 0000:0b:00.3: xHCI Host Controller
[  +0,000004] xhci_hcd 0000:0b:00.3: new USB bus registered, assigned bus number 6
[  +0,000004] xhci_hcd 0000:0b:00.3: Host supports USB 3.0  SuperSpeed
[  +0,000023] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[  +0,000030] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18
[  +0,000002] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  +0,000001] usb usb6: Product: xHCI Host Controller
[  +0,000001] usb usb6: Manufacturer: Linux 4.18.0-13-generic xhci-hcd
[  +0,000002] usb usb6: SerialNumber: 0000:0b:00.3
[  +0,000114] hub 6-0:1.0: USB hub found
[  +0,000008] hub 6-0:1.0: 4 ports detected
[  +0,334820] usb 5-3: new full-speed USB device number 2 using xhci_hcd
[  +0,205071] usb 5-3: New USB device found, idVendor=045e, idProduct=0291, bcdDevice= 1.07
[  +0,000003] usb 5-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  +0,258777] usb 5-4: new full-speed USB device number 3 using xhci_hcd
[  +0,032376] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.2/0000:0a:00.1/sound/card3/input42
[  +0,000074] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.2/0000:0a:00.1/sound/card3/input43
[  +0,000058] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.2/0000:0a:00.1/sound/card3/input44
[  +0,000052] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.2/0000:0a:00.1/sound/card3/input45
[  +0,137643] usb 5-4: New USB device found, idVendor=046d, idProduct=c332, bcdDevice= 3.01
[  +0,000003] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0,000002] usb 5-4: Product: Gaming Mouse G502
[  +0,000002] usb 5-4: Manufacturer: Logitech
[  +0,000001] usb 5-4: SerialNumber: 0D6135583835
[  +0,035399] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-4/5-4:1.0/0003:046D:C332.000C/input/input46
[  +0,000113] hid-generic 0003:046D:C332.000C: input,hidraw3: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:0b:00.3-4/input0
[  +0,008962] input: Logitech Gaming Mouse G502 Keyboard as /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-4/5-4:1.1/0003:046D:C332.000D/input/input47
[  +0,057463] input: Logitech Gaming Mouse G502 Consumer Control as /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-4/5-4:1.1/0003:046D:C332.000D/input/input48
[  +0,000065] input: Logitech Gaming Mouse G502 System Control as /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-4/5-4:1.1/0003:046D:C332.000D/input/input49
[  +0,000105] hid-generic 0003:046D:C332.000D: input,hiddev2,hidraw4: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:0b:00.3-4/input1

Any idea ?

Btw my PSU is Corsair HX1000i which worked fine on one of my mining rigs with 1080Ti’s

@wendell will disable aspm now and do more tests.

What speed is your memory? Can you try 2933 if it’s faster than 2933?

Also try the other pcie slot for your gfx card

My memory is @3000Mhz auto XMP profile, i have dual boot with third SSD and windows and there i use first GPU without issues.

IOMMU can introduce additional instability. Leave it on the XMP settings, but back off the speed to 2666 or 2933 just for diagnostic purposes.

There are no aspm errors in your dmesg log, which is encouraging, though.

also, what version of qemu is this? have you tried a newer version (e.g. via snap package?)

Hi @wendell , sorry for not replying i got a flu.
I will try reduced RAM clock tomorrow and will test new version of qemu (mine is from standard ubuntu repo) .

One more question , have you managed to install or upgrade windows to 180x version?
During my installation i noticed that anything after 1709 won’t even install and forums confirmed that. Combination of Q35 OVMF and KVM with Ryzen cpu host-passthrough.

You might be talking about msrs? Lots of threads on that here. It’s just a settings tweak.

Did you check GPU/VRAM frequencies in games (by MSI Afterburner, …)? My ASUS Strix 1080Ti OC in games sometimes run VRAM only on 2D frequencies (HostOS:Xubuntu 18.04, GustOS:Win10).

Sooo, did you get it working?

Actually no , reverted to dual boot . Everything that i tried did not solve the instability except downclocking and that was not an option for me.

bummer:

I feel like I’m experiencing something similar.

I was using some ebay & craig’s list parts a while ago and was experiencing the same stutter issue where the GPU wasn’t being fully used. Thought it was due to junk parts.

Oh well, I’ll keep you posted, using Proxmox though, not sure if it will be useful for your use case.