Need advices on my gaming VM performance


Recommended Posts

Hello all!

 

I'm finished my gaming VM, and I feel it lacks of power, but I don't understand from where...

 

Here is my TimeSpy => http://www.3dmark.com/spy/12703136

Here is my FireStrike => http://www.3dmark.com/fs/22973584

Aida64 pinned.

 

My tower is:

Threadripper 3960x watercooled

Aorus Master

4*16GB ram (2 kit of DDR4 G.Skill Trident Z Neo 32 Go (2 x 16 Go), 3200 MHz, CAS 16)

VM + benchmark tool installed on nvme ssd samsung sm961

 

I connect throught Moonlight.

 

Does somebody could tell me where I can improve things, or maybe is that normal?

aida1.PNG

aida2.PNG

Link to comment

Sorry I forgot my XML, anbd I don't find how to edit my post....

My Graphic card is an EVGA 2080ti XC Gaming.

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>ValiGaming</name>
  <uuid>bda33f63-eba0-ec7e-5438-f3659b6a4783</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>16</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='1'/>
    <vcpupin vcpu='1' cpuset='25'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='26'/>
    <vcpupin vcpu='4' cpuset='3'/>
    <vcpupin vcpu='5' cpuset='27'/>
    <vcpupin vcpu='6' cpuset='4'/>
    <vcpupin vcpu='7' cpuset='28'/>
    <vcpupin vcpu='8' cpuset='5'/>
    <vcpupin vcpu='9' cpuset='29'/>
    <vcpupin vcpu='10' cpuset='6'/>
    <vcpupin vcpu='11' cpuset='30'/>
    <vcpupin vcpu='12' cpuset='7'/>
    <vcpupin vcpu='13' cpuset='31'/>
    <vcpupin vcpu='14' cpuset='8'/>
    <vcpupin vcpu='15' cpuset='32'/>
    <emulatorpin cpuset='44'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/bda33f63-eba0-ec7e-5438-f3659b6a4783_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vpindex state='on'/>
      <synic state='on'/>
      <stimer state='on'/>
      <reset state='on'/>
      <vendor_id state='on' value='1234567890ab'/>
      <frequencies state='on'/>
    </hyperv>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <vmport state='off'/>
    <ioapic driver='kvm'/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='8' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' present='no' tickpolicy='catchup'/>
    <timer name='pit' present='no' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <timer name='hypervclock' present='yes'/>
    <timer name='tsc' present='yes' mode='native'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/ValiGaming/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='pci' index='1' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:2a:29:8e'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 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='unix'>
      <target type='virtio' name='org.qemu.guest_agent.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'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x21' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/isos/BIOS/EVGA.RTX2080Ti.11264.181024.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x21' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x21' slot='0x00' function='0x2'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x21' slot='0x00' function='0x3'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

 

CBR20.PNG

Edited by Valiran
Link to comment

@Valiran Do you have any performance issues?

 

There are a couple things you can play around with. Set the core count without counting in the HT of the VM to a multiple of 6 (6, 12, 18, 24) so it uses a full chiplet. In your case, you have selected 8 cores. That means you're using a full die + 2 cores from another one where maybe other processes from docker or other VMs are running on. The 3960x has 4 chiplets each with 6 cores. Isolating the cores you wanna use can also help in this case. You might see some better memory performance. Windows power settings to "high performance" can also help a bit. Have you tried the Q35 machine type? Maybe a thing to look at it and test with this if the performance for your specific need is better. To use Q35 you have to setup a new VM, keep that in mind.

 

I did a quick test for comparisson on a 12core/24thread Q35 VM (16GB, 1080ti, NVME) and the numbers looking close to yours. I'm not having any issues with my VM.

 

grafik.png.bf0525bf6e160ce727f7f741573f1d05.png

 

 

grafik.png.d44fc352cd0f42281ef09c9c2671f27d.png

 

grafik.png.e2f66bfcb89fd6dac0cd7444c58b4d36.png

 

  • Like 1
Link to comment
  • 2 months later...
On 6/29/2020 at 11:51 AM, bastl said:

@Valiran Do you have any performance issues?

 

There are a couple things you can play around with. Set the core count without counting in the HT of the VM to a multiple of 6 (6, 12, 18, 24) so it uses a full chiplet. In your case, you have selected 8 cores. That means you're using a full die + 2 cores from another one where maybe other processes from docker or other VMs are running on. The 3960x has 4 chiplets each with 6 cores. Isolating the cores you wanna use can also help in this case. You might see some better memory performance. Windows power settings to "high performance" can also help a bit. Have you tried the Q35 machine type? Maybe a thing to look at it and test with this if the performance for your specific need is better. To use Q35 you have to setup a new VM, keep that in mind.

 

I did a quick test for comparisson on a 12core/24thread Q35 VM (16GB, 1080ti, NVME) and the numbers looking close to yours. I'm not having any issues with my VM.

 

grafik.png.bf0525bf6e160ce727f7f741573f1d05.png

 

 

grafik.png.d44fc352cd0f42281ef09c9c2671f27d.png

 

grafik.png.e2f66bfcb89fd6dac0cd7444c58b4d36.png

 

mmm thanks xDD , i was playing LoL from 120 fps to 60 drops all time whit a 1650 super , i read your comment changue to q35 (5.0) and now im playing whit 500 fps xDDDDD

  • Haha 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.