Jump to content

horrible stutters on Gaming VM


prspyder

Recommended Posts

Hi guys so my current setup is a gigabyte MD70  with 2 xeons 2630V3 running 32GB of RAM and a TITAN XP. I want to game on a VM for while before pulling the trigger on getting a new system (my X299 build blew up lost cpu and mobo)  anyways the thing is that I have run some benchmarks on my VM and I get some really bad stutters the frame drops to 0 for a second and then they go back up.

stutters.thumb.jpg.6a99d03ea09482d48097eba44a61fa98.jpg

This is the type of stutter I'm talking is also consistent I have tried messing with CPU power management on the Bios, set performance in unraid tips and triks I had already isolated the cores I'm using for use with the VM only I made sure that my GPU is in the pcie used for the cpu I'm using. I'm not using core 0 or 1 because unraid use them. I tried the vm only without anything else running in unraid and still got the same perfomance. Vm sits in the cache of unraid (samsung 850 pro).

This is my XML of the VM 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Gaming PC</name>
  <uuid>40cc91a2-f0a6-6c60-832f-9ab58361e091</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>12</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='18'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='19'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='20'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='21'/>
    <vcpupin vcpu='8' cpuset='6'/>
    <vcpupin vcpu='9' cpuset='22'/>
    <vcpupin vcpu='10' cpuset='7'/>
    <vcpupin vcpu='11' cpuset='23'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-3.0'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='6' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </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/cache/domains/Gaming PC/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/virtio-win-0.1.141-1.iso'/>
      <target dev='hdb' bus='ide'/>
      <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='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:04:ca:d7'/>
      <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='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes' xvga='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x045e'/>
        <product id='0x02e6'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x062a'/>
        <product id='0x4101'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1b3f'/>
        <product id='0x2008'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

I also tried removing cores or adding them the best performance I got what with this 6cores 12 thread config but still does this stutters also I capped my frames to 35 fps because If I try 60 is worse bare in mind is not a gpu problem since my Titan Xp is barely doing some work. I'm really open to ideas to try since I already tried many things I believe. 

topology.png

Link to comment
  • 1 month later...
On 3/12/2019 at 7:39 AM, prspyder said:

Hi guys so my current setup is a gigabyte MD70  with 2 xeons 2630V3 running 32GB of RAM and a TITAN XP. I want to game on a VM for while before pulling the trigger on getting a new system (my X299 build blew up lost cpu and mobo)  anyways the thing is that I have run some benchmarks on my VM and I get some really bad stutters the frame drops to 0 for a second and then they go back up

hey there. few minutes ago was trying to find out same issue. came across your post and while scrooling down was hopping to get an answer. but i think i have the answer.

im running xeon to with c622chipset/server MB/ECC RAM. not exactly a gaming rig lol. since i bought unraid i was learning and testing and cuz of issue like your i thought i need to change MB.

well the way i replicate this was while in desktop i would open a window or edge and move the mouse over very fast, and i would get stutter.

same for benchmarks.

so went to bios again and play with OPROM and changed to lagacy for the m.2 drive. and also enabled Bus Master. dont know for sure which did the trick but now i feel bare metal while on desktop.

also have a x4 pci u.2 adapter as cache and changed that to lagacy to, both from disable.

 

right now im getting some game stutter with 2080ti, but i will keep doing tests, do it takes alot of time to reboot, go bios, boot unraid, boot vm, benchmark (to check if all ok) then go play

 

well wish you got it working and if you remember what fixed it, please share, thanks

Link to comment

Archived

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

×
×
  • Create New...