<div dir="ltr">Hi Dominik,<div><br></div><div>Sure, I beleive you can improve using:</div><div><br></div><div><span style="font-size:12.8px"><cpu mode='</span>host-passthrough<span style="font-size:12.8px">'></span></div><div><span style="font-size:12.8px"></cpu></span><br></div><div><br></div><div>add io='native'<br></div><div><br></div><div><span style="font-size:12.8px"> <driver name='qemu' type='qcow2' cache='none' </span>io='native'<span style="font-size:12.8px">/></span></div><div><br></div><div>After that, please try again, but I can see other thing, for example, change the hda=IDE to virtio.</div><div><br></div><div>Cheers!</div><div><br></div><div>Thiago</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-14 5:26 GMT-03:00 Dominik Psenner <span dir="ltr"><<a href="mailto:dpsenner@gmail.com" target="_blank">dpsenner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm investigating a performance issue on a virtualized windows server host that is run on a ubuntu machine via libvirt/qemu. While the host can easily read/write on the raid drive with 100Mmb/s as observable with dd, the virtualized windows server running on that host is barely able to read/write with at most 8Mb/s and averages around 1.4Mb/s. This has grown to the extent that the virtualized host is often unresponsive and even unable to start up its services with system default timeouts. Any help to improve the situation is greatly appreciated.<br>
<br>
This is the configuration of the virtualized host:<br>
<br>
~$ virsh dumpxml windows-server-2016-x64<br>
<domain type='kvm' id='1'><br>
  <name>windows-server-2016-x64<<wbr>/name><br>
  <uuid>XXX</uuid><br>
  <memory unit='KiB'>2097152</memory><br>
  <currentMemory unit='KiB'>2097152</currentMem<wbr>ory><br>
  <vcpu placement='static'>2</vcpu><br>
  <resource><br>
    <partition>/machine</partition<wbr>><br>
  </resource><br>
  <os><br>
    <type arch='x86_64' machine='pc-i440fx-xenial'>hvm<wbr></type><br>
    <boot dev='hd'/><br>
  </os><br>
  <features><br>
    <acpi/><br>
    <apic/><br>
    <hyperv><br>
      <relaxed state='on'/><br>
      <vapic state='on'/><br>
      <spinlocks state='on' retries='8191'/><br>
    </hyperv><br>
  </features><br>
  <cpu mode='custom' match='exact'><br>
    <model fallback='allow'>IvyBridge</mo<wbr>del><br>
    <topology sockets='1' cores='2' threads='1'/><br>
  </cpu><br>
  <clock offset='localtime'><br>
    <timer name='rtc' tickpolicy='catchup'/><br>
    <timer name='pit' tickpolicy='delay'/><br>
    <timer name='hpet' present='no'/><br>
    <timer name='hypervclock' present='yes'/><br>
  </clock><br>
  <on_poweroff>destroy</on_power<wbr>off><br>
  <on_reboot>restart</on_reboot><br>
  <on_crash>restart</on_crash><br>
  <pm><br>
    <suspend-to-mem enabled='no'/><br>
    <suspend-to-disk enabled='no'/><br>
  </pm><br>
  <devices><br>
    <emulator>/usr/bin/kvm-spice</<wbr>emulator><br>
    <disk type='file' device='disk'><br>
      <driver name='qemu' type='qcow2' cache='none'/><br>
      <source file='/var/data/virtuals/machi<wbr>nes/windows-server-2016-x64/<wbr>image.qcow2'/><br>
      <backingStore/><br>
      <target dev='hda' bus='ide'/><br>
      <alias name='ide0-0-0'/><br>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/><br>
    </disk><br>
    <disk type='file' device='cdrom'><br>
      <driver name='qemu' type='raw'/><br>
      <source file='/var/data/virtuals/machi<wbr>nes/windows-server-2016-x64/<wbr>dvd.iso'/><br>
      <backingStore/><br>
      <target dev='hdb' bus='ide'/><br>
      <readonly/><br>
      <alias name='ide0-0-1'/><br>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/><br>
    </disk><br>
    <controller type='usb' index='0' model='ich9-ehci1'><br>
      <alias name='usb'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/><br>
    </controller><br>
    <controller type='usb' index='0' model='ich9-uhci1'><br>
      <alias name='usb'/><br>
      <master startport='0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/><br>
    </controller><br>
    <controller type='usb' index='0' model='ich9-uhci2'><br>
      <alias name='usb'/><br>
      <master startport='2'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/><br>
    </controller><br>
    <controller type='usb' index='0' model='ich9-uhci3'><br>
      <alias name='usb'/><br>
      <master startport='4'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/><br>
    </controller><br>
    <controller type='pci' index='0' model='pci-root'><br>
      <alias name='pci.0'/><br>
    </controller><br>
    <controller type='ide' index='0'><br>
      <alias name='ide'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br>
    </controller><br>
    <interface type='bridge'><br>
      <mac address='52:54:00:0e:f2:23'/><br>
      <source bridge='br0'/><br>
      <target dev='vnet0'/><br>
      <model type='rtl8139'/><br>
      <alias name='net0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>
    </interface><br>
    <serial type='pty'><br>
      <source path='/dev/pts/1'/><br>
      <target port='0'/><br>
      <alias name='serial0'/><br>
    </serial><br>
    <console type='pty' tty='/dev/pts/1'><br>
      <source path='/dev/pts/1'/><br>
      <target type='serial' port='0'/><br>
      <alias name='serial0'/><br>
    </console><br>
    <input type='tablet' bus='usb'><br>
      <alias name='input0'/><br>
    </input><br>
    <input type='mouse' bus='ps2'/><br>
    <input type='keyboard' bus='ps2'/><br>
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'><br>
      <listen type='address' address='127.0.0.1'/><br>
    </graphics><br>
    <video><br>
      <model type='vga' vram='16384' heads='1'/><br>
      <alias name='video0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br>
    </video><br>
    <memballoon model='virtio'><br>
      <alias name='balloon0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br>
    </memballoon><br>
  </devices><br>
  <seclabel type='dynamic' model='apparmor' relabel='yes'><br>
    <label>libvirt-XXX</label><br>
    <imagelabel>libvirt-XXX</image<wbr>label><br>
  </seclabel><br>
</domain><br>
<br>
Cheers,<br>
Dominik<br>
<br>
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote></div><br></div>