<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 5:12 PM, Fabrice Bacchella <span dir="ltr">&lt;<a href="mailto:fabrice.bacchella@orange.fr" target="_blank">fabrice.bacchella@orange.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">I&#39;m playing with perf in vm and getting inconsistent result. But I wonder if it&#39;s a kvm, ovirt or hardware problem.<div><br></div><div>On a ovirt&#39;s vm:</div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">$ sudo perf list | grep Hardware | wc -l</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">1</span></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">$ lscpu</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">...</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Model name:            Intel Core Processor (Haswell, no TSX)</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></span></div><div><span style="font-variant-ligatures:no-common-ligatures">On another ovirt&#39;s vm:</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">$ sudo perf list | grep Hardware | wc -l</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">27</div><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">$ lscpu</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">...</span></div><div><span style="font-variant-ligatures:no-common-ligatures"></span></div></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Model name:            AMD Opteron 23xx (Gen 3 Class Opteron)</span></div><div><br></div><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">On a libvirtm vm:</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">sudo perf list | grep Hardware | wc -l</span></div><div style="margin:0px;line-height:normal">1</div><div style="margin:0px;line-height:normal"><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">lscpu</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">...</span></div></div><div><span style="font-variant-ligatures:no-common-ligatures">Model name:            Westmere E56xx/L56xx/X56xx (Nehalem-C)</span></div><div><span style="font-variant-ligatures:no-common-ligatures">...</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Look&#39;s like intel CPU don&#39;t expose hardware events. Is there an option on kvm or ovirt to help that ?</span></div></span></div></span></div></span></div></div></blockquote><div><br></div><div>Perhaps you can try with a VDSM hook adding the relevant events[1] to the libvirt XML?</div><div>Y.<br></div><div><br></div><div>[1] <a href="https://libvirt.org/formatdomain.html#elementsPerf">https://libvirt.org/formatdomain.html#elementsPerf</a> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span style="font-variant-ligatures:no-common-ligatures"><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></span></div></span></div></span></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>