I feel like I need some adult supervision here.
Out of the box the VM performance was acceptable, however in cpu intensive games I’m losing a lot of frames compared to bare metal. So, I started to look for solutions.
CPU pinning was easy enough, but if anything performance dropped (I’m using userbenchmark to compare my results).
I had a hard time wrapping my head around hugepages. I set the kernel parameters:
default_hugepagesz=1G hugepagesz=1G hugepages=16
and I stumbled upon this guide: https://rokups.github.io/#!pages/gaming-vm-performance.md
However I’m not really sure if those scripts work, there certainly was no discernible difference in performance.
cat /proc/meminfo | grep Huge AnonHugePages: 0 kB ShmemHugePages: 0 kB FileHugePages: 0 kB HugePages_Total: 16 HugePages_Free: 16 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 1048576 kB Hugetlb: 16777216 kB
I also added
<feature policy='require' name='topoext'/> under cpu in the configuration guide.
32GB RAM, split between Guest and Host
1660Ti - Guest
RX 570 - Host
If anyone could enlighten my dumb ass about all this I would appreciate it a lot.
Btw people have already helped me a lot on this forum and I love you all.