OSX 10.12.4 Lag [SOLVED]


Recommended Posts

Hello,

 

I've got a unRAID osx VM running 10.12.4 with the second latest nvidia web driver 376 on a gtx950. Now everything seems to be working but it's slightly laggy. It's not as responsive as I was hoping it would be. It's a lot slower than my Macbook Air. When I drag windows around it lags and on the air its smooth. I cannot watch youtube videos, it basically takes 4 seconds to play 1 second and the sound is all glitchy. I've tried assigning 4 cpu cores, 8, 10 i've tried 2gb memory up to 30gb of memory. I don't understand why it's like this. My windows VM and Ubuntu VM is fine. I also tried my GTX 1080 with the latest beta driver and it works but still have the same issues. I'd really love to get this working, I keep hitting the 8GB memory on the Macbook Air, but at least it runs smoothly.

 

In clover i've got the HDMIAudio.kext but i've also ran the HDMIAudio install.sh script on the VM. Perhaps the audio problems are causing the VM as a whole to lag? It lags all the time, whether audio is playing or not.

 

2 x e5-2670

64gb ram

GTX 950 & 1080

PCI-E SSD

SSD's

 

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>OSX BEAST</name>
  <uuid>78404722-02d4-cca3-397f-efa6cb4f940b</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>10485760</memory>
  <currentMemory unit='KiB'>10485760</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='7'/>
    <vcpupin vcpu='2' cpuset='8'/>
    <vcpupin vcpu='3' cpuset='9'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-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/78404722-02d4-cca3-397f-efa6cb4f940b_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <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/disk1/OSX BEAST/sierra.vmwarevm/sierra.img'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </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='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:51:66:48'/>
      <source bridge='br0'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046b'/>
        <product id='0xff10'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x07' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x00' slot='0x1a' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

Edited by cman9090
Link to comment

step 1: remove your vm image off your array and onto your cache or an independent drive mounted via unassigned devices

step 2: send beer money.

 

 

also, you can tweak your xml a little here: 

<vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='7'/>
    <vcpupin vcpu='2' cpuset='8'/>
    <vcpupin vcpu='3' cpuset='9'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-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/78404722-02d4-cca3-397f-efa6cb4f940b_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' threads='1'/>
  </cpu>

 

 

you had static set as 8 but only 4 threads assigned. Additionally, your topology shows os x a hyper threaded processor. Don't do that because it will throttle the HT pair and you'll lose a little performance.

Link to comment

still the same :(https://ufile.io/0uxxb  <-- video of the issues. I've unassigned the drive but hasn't changed anything. wait i just watched the video, i have no idea what is going on, it seems super fast in the video but on the actual VM everything is really slow. like taking 3 seconds to play 1 second, and moving the windows around is clunky and slow.

Edited by cman9090
Link to comment

Yeah sorry about the video, I was hoping to capture what was going on but on a normal computer it plays super fast.

 

I had previously done this:
 append isolcpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15 initrd=/bzroot,/bzroot-gui

 

I've got my cpus currently like this:

 

<vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='7'/>
    <vcpupin vcpu='3' cpuset='8'/>
    <vcpupin vcpu='4' cpuset='9'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='11'/>
    <vcpupin vcpu='7' cpuset='12'/>
    <vcpupin vcpu='8' cpuset='13'/>
    
  </cputune>

<cpu mode='host-passthrough'>
    <topology sockets='1' cores='8' threads='1'/>
  </cpu>

 

 

Edited by cman9090
Link to comment

in "top", when im playing the video that process for the VM is using over 200% CPU. I've currently got 6 cores assigned. Does that help anything? When im not moving the mouse or playing video, it'll sit at like 20% cpu or less, but soon as i move around, the CPU jumps up to oer 200%. Thats running "top" on unraid. Mind you windows is at like 800%cpu and it doesn't lag. So frustrating :(

Edited by cman9090
Link to comment
10 hours ago, 1812 said:

what guide did you follow for making the vm? What clover did you use?

 

Using the latest clover and used the Spaceinvader tutorial on youtube. I had 10.12.4 from the get-go so I also followed his other video on upgrading to 10.12.4 and installed the FakeSMC and graphics drivers in the VMWare VM before transferring to a Unraid HDD and converting to an IMG file. It's odd, when it comes to processing tasks, like setting up an IDE and caching all the files, or installing software, it's really fast but the UI, videos and the time displayed up in the top right task bar is in slow motion. I almost missed my bedtime because it was saying it was 8:45 when it was actually 8:59 and I had only just updated the time 15 minutes before that so it seems the 3 seconds to 1 second of real time seems to be happening in lots of places. The VM performed worse on the cache or unassigned drive so I put it back in the array and it performed the same as the video example I had post.

 

Link to comment
8 minutes ago, cman9090 said:

Are you running 10.12.4 with the latest nvidia driver?

 

one is on 10.12.4 with a gt 730 and latest driver. another is also on 10.12.4 but the driver isn't playing well with my gtx 760, so it runs on os driver.

 

both use the same base install image, created using the above video, then clover updated, then os update.

Link to comment
  • 1 year later...
On 4/16/2017 at 5:07 PM, 1812 said:

You can try the one from that vid again: https://www.dropbox.com/s/s8hfoct1pdi...

 

or backdate to the previous one: https://www.dropbox.com/s/8hy5647zqnk...

 

 

Worst case scenario, consider following the vid below, then update clover later if you want, though not needed.

 

In this case, did he trash the newer version of Clover and install this later version and walk through the rest of the install followed in the video you posted? 

When I try to open the Clover app after moving it to applications folder, it says that the 'old website' is not valid and wants to direct me to the clover site. What do I do in this case? And might there be another fix for this laggyness? 

Thank you very much for your help!

[Attached is the link I am getting after clicking on the Clover after moving it in the applications folder. Also note, the screens are white and only appear after moving mouse over or am active in the window, makes it very hard to navigate in the window and hard to do anything.]

Screenshot 2019-02-09 01.35.58.png

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.