Jump to content

CPU Performances on W10 VM


mathieuNls

Recommended Posts

Hi,

 

I've been using unraid (6.3.2) for a few months, and so far, it's all love. 

 

Recently, I bought a graphic card (RX480) in order to make myself a casual gaming VM as featured in so many places (ltt and so on). Something I didn't notice while doing productive work (docker container + some IDE on a debian VM) is that I seem to lose a lot of my CPU performances while in a VM, 16% to be precise.

 

Indeed, for CPU Single Thread I score 393 (average of three tests with nothing else running) while the reference for my processor is 474 according to CPU-Z. The CPU multi-thread test is irrelevant as not all the cores are linked to the VM. 

 

I've followed other posts in this forum to improve the performances for W10 and came up with the following configurations:

 

<name>Windows 10</name>
  <uuid>d560712f-74e7-e728-d16e-7f42e6209349</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>20971520</memory>
  <currentMemory unit='KiB'>20971520</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>6</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='3'/>
    <vcpupin vcpu='1' cpuset='7'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='6'/>
    <vcpupin vcpu='4' cpuset='1'/>
    <vcpupin vcpu='5' cpuset='5'/>
    <emulatorpin cpuset='0,4'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.5'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/d560712f-74e7-e728-d16e-7f42e6209349_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor id='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='3' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>

 

Is there something you would change in order to have a more negligible loss (~5%)? 

 

Thanks,

M.

Untitled.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...