<div dir="ltr"><br><div class="gmail_extra cye-lm-tag"><br><div class="gmail_quote cye-lm-tag">2016-04-15 6:13 GMT+02:00 Okky Hendriansyah <span dir="ltr" class="cye-lm-tag"><<a href="mailto:okky.htf@gmail.com" target="_blank">okky.htf@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I think Alex had mentioned about this, and if I recall correctly using pc-i440fx is preferrable since it is simpler and going to pc-q35 won't have any performance benefit. Currently I only use pc-q35 specifically just for my Hackintosh guest. I never done any benchmark between these two types recently though, so the result might change.<br> <br></div></div></div></div></blockquote><div> </div><div class="cye-lm-tag">I just read alex's mail below yours, indeed you are right nothing changes, so much fuss for nothing :/</div><div class="cye-lm-tag">Thanks for the clarification alex btw.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="cye-lm-tag"><div><br></div></span><div>According to one of the reddit users at /r/vfio [1], avoiding to use hv_vapic and hv_syncic in newer Intel CPUs starting Ivy Bridge-E onwards which has built-in Intel APICv will generally improve performance by reducing VM exits. Currently I'm using these options:<br><b><span style="font-family:monospace,monospace" class="cye-lm-tag">-cpu host,kvm=off,hv_time,hv_relaxed,hv_spinlocks=0x1fff,hv_vpindex,hv_reset,hv_runtime,hv_crash,hv_vendor_id=freyja<br></span></b><br></div></div></div></div></blockquote><div> </div><div>I read that post too, though i don't have enough knowledge about virtualization to really understand what this guy is talking about, i bumped into this : <a href="https://software.intel.com/en-us/blogs/2009/06/25/virtualization-and-performance-understanding-vm-exits" target="_blank">https://software.intel.com/en-us/blogs/2009/06/25/virtualization-and-performance-understanding-vm-exits</a> but no. </div><div>Will try your additionnal options while waiting to have the latest libvirt version.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="cye-lm-tag"><div><br></div></span><div>Those two kernel configurations (1000 MHz and Voluntary) made my stuttery Garret to a butter smooth Garret ;). Other plus point is that ZFS, which I use extensively for the OS guest images prefers Voluntary also. [2]<br></div></div></div></div></blockquote><div> </div><div class="cye-lm-tag">I personnaly have my vm image in a qcwo2 container on a ssd, it would be nice to get someone with I/O knowledge, since there are tons of operations, optimize the storage part would be great, especially for people running on ssd, i found a thread on vfio reddit :  <br></div><div class="cye-lm-tag"><a href="https://m.reddit.com/r/VFIO/comments/43fbmy/discussion_optimal_storage_settings/" target="_blank">https://m.reddit.com/r/VFIO/comments/43fbmy/discussion_optimal_storage_settings/</a><br></div><div class="cye-lm-tag"><br></div><div class="cye-lm-tag">Speaking of drives, it seems from what i read that it is possible for qemu/kvm to read a native (non virtualize) install of windows from a passthrough drive.</div><div class="cye-lm-tag">If so is there something special to do? Might go to the hassle of reinstalling my all windows system by i prefer to be sure before touching anything (though i might just backup the image, boot my vm from it and clone windows, much easier than reinstalling).</div><div class="cye-lm-tag"><br></div><div class="cye-lm-tag">That would be glorious for comparative benchmarks since one will need to have two installs on the same type of drive to have the same configuration otherwise, 3dmark only runs on windows and heaven benchmark only load the gpu only so it is kind of useless in our case imo.<br></div><div><br></div><div class="cye-lm-tag">Seem like a container is not a great idea after and that it would be better to have a full disk reserved for the vm, might be worth formating, not sure about that.</div><blockquote class="gmail_quote cye-lm-tag" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class="cye-lm-tag"><div class="gmail_extra cye-lm-tag"><div class="gmail_quote cye-lm-tag"><div></div><span class="cye-lm-tag"><div class="cye-lm-tag"> </div></span><div>I think MADVISE hugepages doesn't directly hit the guest performance. Though I find that using this option could help eliminating uneeded hugepage requests on applications that do not gain benefit from hugepages. So this option is more to have an efficient memory usage on the host, rather than guest performance since the guest is already using a dedicated hugepages (hugetlbfs).<br></div></div></div></div></blockquote><div><br></div><div>I was under the impression that classic hugepages could reserve memory to themselved thus doing rubbish with hugetlbs.</div><div>You mean that by mounting hugepages the memory is hide from the host? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="cye-lm-tag"><div><br></div></span><div>Don't forget to still enable Windows paging if your guest memory is below the requirement. I've had low memory warning on Witcher 3 (I set the guest memory to 8 GB, and it is still has 50%+ free memory) before I reenabled back the Windows paging on C again. The other alternative is to increase the guest memory. When I set it to 16 GB without Windows paging, Witcher 3 didn't complain anymore. <br></div></div></div></div></blockquote><div><br></div><div>Windows paging? What is this?</div><div>I attributed 8go of ram to the guest, that should be enough, i'm closely monitoring ressources comsuption with rivatuner server and i never get beyong 6go even when benchmarking. </div><div><br></div><div class="cye-lm-tag">Since we are using virtio drivers from redhat, i wonder if updating them frequently (i don't know if there are frequents updates but still) might result in better performance.</div><div class="cye-lm-tag">Speaking of which, i one breaks things while trying to update the drivers, i assume adding bootmenu option on libvirt allows to boot windows in safe mode right?</div></div><br></div></div>