<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Tekst zonder opmaak Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.E-mailStijl17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TekstzonderopmaakChar
        {mso-style-name:"Tekst zonder opmaak Char";
        mso-style-priority:99;
        mso-style-link:"Tekst zonder opmaak";
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=NL-BE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dear Jatin,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe it’s a good idea first to implement Spice:<o:p></o:p></span></p><p class=MsoPlainText style='text-indent:35.4pt'><span lang=EN-US><video><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                                <model type='qxl' ram='65536' vram='65536' heads='1'/><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                               <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                </video><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                <channel type='spicevmc'><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                               <target type='virtio' name='com.redhat.spice.0'/><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>                               <address type='virtio-serial' controller='0' bus='0' port='1'/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>            </span></channel><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Spice should be installed on the host.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Do you use virtio ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Greetings,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dominique.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Van:</span></b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Jatin Davey [mailto:jashokda@cisco.com] <br><b>Verzonden:</b> dinsdag 14 april 2015 12:23<br><b>Aan:</b> libvirt-users@redhat.com<br><b>Onderwerp:</b> [libvirt-users] VM Performance using KVM Vs. VMware ESXi<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi All<br><br>We are currently testing our product using KVM as the hypervisor. We are not using KVM as a bare-metal hypervisor. We use it on top of a RHEL installation. So basically RHEL acts as our host and using KVM we deploy guests on this system.<br><br>We have all along tested and shipped our application image for VMware ESXi installations , So this it the first time we are trying our application image on a KVM hypervisor.<br><br>On this front i have done some tests to find out how our application's response time is when deployed on KVM and then compare it with a VM deployed on VMware ESXi. We have a benchmark test that basically loads the application simulating a load of 100 parallel users logging into the system and downloading reports. These tests basically use a HTTP GET query to load the application VM. In addition to that i have taken care to use the same hardware for both the tests , one with RHEL(Host)+KVM and another with VMware ESXi. All the hardware specifications for both the servers remain the same. The load test also remains the same for testing with both the servers.<br><br>First observation is that the average response time on the VMware ESXi is : 500 milli-seconds while the application's average response time when deployed using RHEL(Host)+ KVM is : 1050 milli-seconds. The response time of the application when deployed on KVM is twice as much as when it is deployed using VMware ESXi.<br><br>I did few more tests to find which sub-system on these servers shows varying metrics.<br><br>First i started with IOZone to find out if there is any mismatch in the speed with which data is read / written to the local disk on the two VMs and found that "Read" speed in the VM that was deployed using RHEL(Host)+KVM was twice as slow as the VM which was deployed using VMware ESXi.<br><br>For more on IoZone , Please refer : <a href="http://www.iozone.org/">http://www.iozone.org/</a><br><br>more specifically the following IoZone metrics were twice as less when compared to the server running with VMware ESXi:<o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=200 style='width:150.0pt;border-collapse:collapse'><tr style='height:14.5pt'><td width=200 style='width:150.0pt;padding:0cm 0cm 0cm 0cm;height:14.5pt'><p class=MsoNormal>Read<o:p></o:p></p></td></tr><tr style='height:14.5pt'><td style='padding:0cm 0cm 0cm 0cm;height:14.5pt'><p class=MsoNormal>Re-read<o:p></o:p></p></td></tr><tr style='height:14.5pt'><td style='padding:0cm 0cm 0cm 0cm;height:14.5pt'><p class=MsoNormal>Reverse-Read<o:p></o:p></p></td></tr><tr style='height:14.5pt'><td style='padding:0cm 0cm 0cm 0cm;height:14.5pt'><p class=MsoNormal>Stride Read<o:p></o:p></p></td></tr></table><p class=MsoNormal><span style='display:none'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=200 style='width:150.0pt;border-collapse:collapse'><tr style='height:14.5pt'><td width=200 style='width:150.0pt;padding:0cm 0cm 0cm 0cm;height:14.5pt'><p class=MsoNormal>Pread<o:p></o:p></p></td></tr></table><p class=MsoNormal style='margin-bottom:12.0pt'> <br>Note: I had run the IoZone tests on the VMs on both the servers.<br><br>Second observation to be made was the output from the "top" command. I could see that the VM deployed on RHEL(Host)+KVM was showing high numbers for the following metrics when compared with the VM deployed on VMware ESXi:<br><br>load averages<br>%sy for all the logical processors<br>%si for all the logical processors<br><br>i debugged further to find out which device is causing more interrupts and found it to be "ide0" , See the output from the /proc/interrupts file below:<br>The other interrupts apart from ide0 are pretty much similar to the VM deployed using VMware ESXi.<br><br>************/proc/interrupts *******************<br>[root@localhost ~]# cat /proc/interrupts<br>           CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7<br>  0:     795827          0          0          0          0          0          0          0    IO-APIC-edge  timer<br>  1:         65          0          0          0          0          0          0          0    IO-APIC-edge  i8042<br>  6:          2          0          0          0          0          0          0          0    IO-APIC-edge  floppy<br>  8:          0          0          0          0          0          0          0          0    IO-APIC-edge  rtc<br>  9:          0          0          0          0          0          0          0          0   IO-APIC-level  acpi<br> 10:     425785          0          0          0          0          0          0          0   IO-APIC-level  virtio0, eth0<br> 11:         47          0          0          0          0          0          0          0   IO-APIC-level  uhci_hcd:usb1, HDA Intel<br> 12:        730          0          0          0          0          0          0          0    IO-APIC-edge  i8042<br> 14:     188086          0          0          0          0          0          0          0    IO-APIC-edge  ide0<br>NMI:          0          0          0          0          0          0          0          0<br>LOC:     795813     795798     795783     795767     795752     795737     795723     795709<br>ERR:          0<br>MIS:          0<br>*********************************************<br><br>Any pointers to improving the response time for the VM for RHEL(Host)+KVM installation would be greatly appreciated.<br><br>Thanks<br>Jatin<o:p></o:p></p></div></body></html>