Hello,
I am quite a noob with linux / proxmox and made a few KVM including a win 10 gaming machine with GPU passthrough. Unfortunatly for me, this machine is very slow/laggy and cannot really be used to play. The performance are a worse than on my 6 years old laptop.
novabench laptop : https://novabench.com/view/2576198
novabench gaming machine : https://novabench.com/view/2576196
I have read as much as I could on this problem and on the setting of this kind of virtual machine, tried differents settings but couldn't find a solution. I am using parsec to connect to the machine.
I mainly used those tutorials to make the GPU passthrough
https://github.com/lucduke/proxmox/blob/main/3-vm-gaming.md (in french)
https://3os.org/infrastructure/prox...virtual-machine-gpu-passthrough-configuration
Here are some informations on the proxmox server and the virtual machine:
Proxmox machine configuration:
the args are for a game that won't work otherwise but I am not sure that they are all needed
I have actually no idea how to solve this, so can anyone help me on fixing this problem ?
Thanks in advance
I am quite a noob with linux / proxmox and made a few KVM including a win 10 gaming machine with GPU passthrough. Unfortunatly for me, this machine is very slow/laggy and cannot really be used to play. The performance are a worse than on my 6 years old laptop.
novabench laptop : https://novabench.com/view/2576198
novabench gaming machine : https://novabench.com/view/2576196
I have read as much as I could on this problem and on the setting of this kind of virtual machine, tried differents settings but couldn't find a solution. I am using parsec to connect to the machine.
I mainly used those tutorials to make the GPU passthrough
https://github.com/lucduke/proxmox/blob/main/3-vm-gaming.md (in french)
https://3os.org/infrastructure/prox...virtual-machine-gpu-passthrough-configuration
Here are some informations on the proxmox server and the virtual machine:
Proxmox machine configuration:
- CPU : AMD Ryzen 7 2700x
- motherboard : aorus B450 M
- Ram : 32 Gigs RAM
- Drive : Aorus M.2 Gen 4 Black - 1 To
- GPU : Asus GeForce RTX 2060 Dual EVO 6G (with a HDMI Displayport Dummy Plug - pass to the gaming machine)
- MSI GT 710
Code:
# pveversion -v
proxmox-ve: 7.2-1 (running kernel: 5.15.39-1-pve)
pve-manager: 7.2-7 (running version: 7.2-7/d0dd0e85)
pve-kernel-5.15: 7.2-6
pve-kernel-helper: 7.2-6
pve-kernel-5.15.39-1-pve: 5.15.39-1
pve-kernel-5.15.35-3-pve: 5.15.35-6
pve-kernel-5.15.30-2-pve: 5.15.30-3
ceph-fuse: 15.2.16-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve1
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.2-3
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-2
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-3
libpve-storage-perl: 7.2-5
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.0-3
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.3-1
proxmox-backup-file-restore: 2.2.3-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-1
pve-container: 4.2-1
pve-docs: 7.2-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.4-2
pve-ha-manager: 3.3-4
pve-i18n: 2.7-2
pve-qemu-kvm: 6.2.0-11
pve-xtermjs: 4.16.0-1
qemu-server: 7.2-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.4-pve1
Code:
# qm config 400
agent: 1
args: -cpu 'host,-hypervisor,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed'
balloon: 0
bios: ovmf
boot: order=scsi0;ide2
cores: 8
cpu: host,hidden=1,flags=+ibpb;+virt-ssbd;+amd-ssbd;+amd-no-ssb
efidisk0: local-lvm:vm-400-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:07:00,pcie=1,x-vga=1
ide0: none,media=cdrom
ide2: none,media=cdrom
machine: pc-q35-6.2
memory: 16384
meta: creation-qemu=6.2.0,ctime=1657136236
name: Win10Gaming
net0: virtio=4D:5F:5A:AD:BC:6F,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-400-disk-1,cache=writeback,discard=on,size=600G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=c620b278-3260-4577-ae63-de62e573ec4e
sockets: 1
tablet: 0
vmgenid: 7ce6e525-2b8f-4e7a-bd71-5204a98658b3
Code:
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 43 bits physical, 48 bits virtual
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 8
Model name: AMD Ryzen 7 2700X Eight-Core Processor
Stepping: 2
Frequency boost: enabled
CPU MHz: 3700.000
CPU max MHz: 3700.0000
CPU min MHz: 2200.0000
BogoMIPS: 7385.93
Virtualization: AMD-V
L1d cache: 256 KiB
L1i cache: 512 KiB
L2 cache: 4 MiB
L3 cache: 16 MiB
NUMA node0 CPU(s): 0-15
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, STIBP disabled, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxex
t fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq m
onitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy
abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb
hw_pstate ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xs
aves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefi
lter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca sme sev sev_es
I have actually no idea how to solve this, so can anyone help me on fixing this problem ?
Thanks in advance