Jump to content

Ly0nx

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Ly0nx

  1. On 7/5/2020 at 7:30 AM, widdefmh said:

    Well, after a lot of googling I can answer my own question.

    For me, this did the trick:

    To my domain tag, add xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'

    so it looks like this:

    
    <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

    And in the end om the domain tag (in the bottom of the xml), add this:

    
    <qemu:commandline>
        <qemu:arg value='-cpu'/>
        <qemu:arg value='host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_vendor_id=Microsoft'/>
      </qemu:commandline>


    After adding this I get the following results in AS SSD:

     

    asssd.png

     

    Very close to bare metal performance!! And my vm is blazing fast! Can't tell I'm running in a vm or bare metal!

    I get a warning in the logs: This family of AMD CPU does not support hyperthreading(2) but does not seem to have an effect,

     

     

    I have also tweaked the following tag:

    
    <clock offset='localtime'>
        <timer name='rtc' tickpolicy='catchup'/>
        <timer name='pit' tickpolicy='delay'/>
        <timer name='hpet' present='yes'/>
      </clock>

    where i changed hpet to yes to get the cpu down a bit in idle mode.

     

    Hope this can help anyone else that have performance issues in a vm and where the vm feels slow and sluggish. Like night and day here now.

    It worked, thanks! And where did you find the answer? (just curious, Im noob😂)

×
×
  • Create New...