Jatin Davey
2015-Apr-14 11:23 UTC
Re: [libvirt-users] VM Performance using KVM Vs. VMware ESXi
On 4/14/2015 4:42 PM, Dominique Ramaekers wrote:> > About Spice: I think it’s good practice to use spice because it > improves the performance of the VM in general by improving screen > performance. If your VM is constantly displaying output, you’ll > probably will notice a difference. >[Jatin] Ok, This is not my concern as of now. I will take a look at it sometime later.> > About virtio: You can see it in the settings. Better yet, it’s in your > XML. If you post your XML, we can take a look… >Here is the xml associated with my VM: ******************************** <!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh edit ******** or other application using the libvirt API. --> <domain type='kvm'> <name>******</name> <uuid>********</uuid> <title>*******</title> <description>***********</description> <metadata> <template name="****"> <disks> <location type="local" name="Local" path="/VM_DATA_01"/> <disk> <source file="/opt/am-data/sw-download/apps//****/ovf/****/system.vmdk" format="vmdk"/> <target file="/VM_DATA_01/****/****.qcow2" format="qcow2"/> </disk> </disks> <applications> <application> <name>****</name> <description>****</description> <version>****</version> <icon>****</icon> </application> </applications> </template> </metadata> <memory unit='KiB'>20971520</memory> <currentMemory unit='KiB'>20971520</currentMemory> <vcpu placement='static'>8</vcpu> <os> <type arch='x86_64' machine='rhel6.5.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/var/lib/libvirt/images/****.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:c9:58:c9'/> <source bridge='br332'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us' passwd='*****'> <listen type='address' address='0.0.0.0'/> </graphics> <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> </domain> ******************************************* Thanks Jatin --------------040007030002010104030802 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> On 4/14/2015 4:42 PM, Dominique Ramaekers wrote:<br> <blockquote cite="mid:5CFBD7F4A5E6214CAAA69C03E2E1CD195451BB4DFB@cmsrv5.cometal.be" type="cite"> <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"; color:black; mso-fareast-language:EN-US;} 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;} span.E-mailStijl19 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:#1F497D;} span.E-mailStijl20 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .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]--> <div class="WordSection1"> <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">About Spice: I think it’s good practice to use spice because it improves the performance of the VM in general by improving screen performance. If your VM is constantly displaying output, you’ll probably will notice a difference.</span></p> </div> </blockquote> [Jatin] Ok, This is not my concern as of now. I will take a look at it sometime later.<br> <blockquote cite="mid:5CFBD7F4A5E6214CAAA69C03E2E1CD195451BB4DFB@cmsrv5.cometal.be" type="cite"> <div class="WordSection1"> <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">About virtio: You can see it in the settings. Better yet, it’s in your XML. If you post your XML, we can take a look…</span></p> </div> </blockquote> <br> Here is the xml associated with my VM:<br> <br> ********************************<br> <!--<br> WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE<br> OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:<br> virsh edit ********<br> or other application using the libvirt API.<br> --><br> <br> <domain type='kvm'><br> <name>******</name><br> <uuid>********</uuid><br> <title>*******</title><br> <description>***********</description><br> <metadata><br> <template name="****"><br> <disks><br> <location type="local" name="Local" path="/VM_DATA_01"/><br> <disk><br> <source file="/opt/am-data/sw-download/apps//****/ovf/****/system.vmdk" format="vmdk"/><br> <target file="/VM_DATA_01/****/****.qcow2" format="qcow2"/><br> </disk><br> </disks><br> <applications><br> <application><br> <name>****</name><br> <description>****</description><br> <version>****</version><br> <icon>****</icon><br> </application><br> </applications><br> </template><br> </metadata><br> <memory unit='KiB'>20971520</memory><br> <currentMemory unit='KiB'>20971520</currentMemory><br> <vcpu placement='static'>8</vcpu><br> <os><br> <type arch='x86_64' machine='rhel6.5.0'>hvm</type><br> <boot dev='hd'/><br> </os><br> <features><br> <acpi/><br> <apic/><br> <pae/><br> </features><br> <clock offset='utc'/><br> <on_poweroff>destroy</on_poweroff><br> <on_reboot>restart</on_reboot><br> <on_crash>restart</on_crash><br> <devices><br> <emulator>/usr/libexec/qemu-kvm</emulator><br> <disk type='file' device='disk'><br> <driver name='qemu' type='qcow2' cache='none'/><br> <source file='/var/lib/libvirt/images/****.qcow2'/><br> <target dev='hda' bus='ide'/><br> <address type='drive' controller='0' bus='0' target='0' unit='0'/><br> </disk><br> <controller type='usb' index='0'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/><br> </controller><br> <controller type='ide' index='0'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br> </controller><br> <interface type='bridge'><br> <mac address='52:54:00:c9:58:c9'/><br> <source bridge='br332'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br> </interface><br> <serial type='pty'><br> <target port='0'/><br> </serial><br> <console type='pty'><br> <target type='serial' port='0'/><br> </console><br> <input type='mouse' bus='ps2'/><br> <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us' passwd='*****'><br> <listen type='address' address='0.0.0.0'/><br> </graphics><br> <sound model='ich6'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br> </sound><br> <video><br> <model type='cirrus' vram='9216' heads='1'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br> </video><br> <memballoon model='virtio'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br> </memballoon><br> </devices><br> </domain><br> *******************************************<br> <br> Thanks<br> Jatin<br> <br> </body> </html> --------------040007030002010104030802--
Daniel P. Berrange
2015-Apr-14 11:28 UTC
Re: [libvirt-users] VM Performance using KVM Vs. VMware ESXi
On Tue, Apr 14, 2015 at 04:53:52PM +0530, Jatin Davey wrote:> On 4/14/2015 4:42 PM, Dominique Ramaekers wrote: > > > >About Spice: I think it’s good practice to use spice because it improves > >the performance of the VM in general by improving screen performance. If > >your VM is constantly displaying output, you’ll probably will notice a > >difference. > > > [Jatin] Ok, This is not my concern as of now. I will take a look at it > sometime later. > > > >About virtio: You can see it in the settings. Better yet, it’s in your > >XML. If you post your XML, we can take a look… > > > > Here is the xml associated with my VM: > > ******************************** > <domain type='kvm'>> <devices> > <emulator>/usr/libexec/qemu-kvm</emulator> > <disk type='file' device='disk'> > <driver name='qemu' type='qcow2' cache='none'/> > <source file='/var/lib/libvirt/images/****.qcow2'/> > <target dev='hda' bus='ide'/> > <address type='drive' controller='0' bus='0' target='0' unit='0'/> > </disk>This disk is configured to use IDE, so performance of anything that does disk I/O is going to be terrible. You really want to be using virtio.> <interface type='bridge'> > <mac address='52:54:00:c9:58:c9'/> > <source bridge='br332'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> > </interface>This doesn't have any model listed at all, so it will be falling back to a generic emulated NIC. Again performance of this is likely going to be terrible for anything doing network I/O. You want to be using virtio for this too. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Dominique Ramaekers
2015-Apr-14 11:37 UTC
Re: [libvirt-users] VM Performance using KVM Vs. VMware ESXi
In your network interface, it’s not discribed which interface to use. So it will use system standard. If I’m not wrong, RHEL uses virtio then… Maybe, it’s still a good idea to put ‘<model type='virtio'/>’ inside the <interface ‘bridge’> section. Daniel beat me to it about the ide-disk (about not using that)… Also don’t use qcow2 for disk-format if you don’t need to. I prefer raw. Qcow2 has a lot of good points but speed isn’t one of them. For everything you can, use virtio. This driver make sure the io-activities goes directly between guest kernel and host kernel without noticeable delay… Van: Jatin Davey [mailto:jashokda@cisco.com] Verzonden: dinsdag 14 april 2015 13:24 Aan: Dominique Ramaekers; libvirt-users@redhat.com<mailto:libvirt-users@redhat.com> Onderwerp: Re: [libvirt-users] VM Performance using KVM Vs. VMware ESXi On 4/14/2015 4:42 PM, Dominique Ramaekers wrote: About Spice: I think it’s good practice to use spice because it improves the performance of the VM in general by improving screen performance. If your VM is constantly displaying output, you’ll probably will notice a difference. [Jatin] Ok, This is not my concern as of now. I will take a look at it sometime later. About virtio: You can see it in the settings. Better yet, it’s in your XML. If you post your XML, we can take a look… Here is the xml associated with my VM: ******************************** <!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh edit ******** or other application using the libvirt API. --> <domain type='kvm'> <name>******</name> <uuid>********</uuid> <title>*******</title> <description>***********</description> <metadata> <template name="****"> <disks> <location type="local" name="Local" path="/VM_DATA_01"/> <disk> <source file="/opt/am-data/sw-download/apps//****/ovf/****/system.vmdk" format="vmdk"/> <target file="/VM_DATA_01/****/****.qcow2" format="qcow2"/> </disk> </disks> <applications> <application> <name>****</name> <description>****</description> <version>****</version> <icon>****</icon> </application> </applications> </template> </metadata> <memory unit='KiB'>20971520</memory> <currentMemory unit='KiB'>20971520</currentMemory> <vcpu placement='static'>8</vcpu> <os> <type arch='x86_64' machine='rhel6.5.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/var/lib/libvirt/images/****.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:c9:58:c9'/> <source bridge='br332'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us' passwd='*****'> <listen type='address' address='0.0.0.0'/> </graphics> <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> </domain> ******************************************* Thanks Jatin
Jatin Davey
2015-Apr-14 11:38 UTC
Re: [libvirt-users] VM Performance using KVM Vs. VMware ESXi
On 4/14/2015 4:58 PM, Daniel P. Berrange wrote:> On Tue, Apr 14, 2015 at 04:53:52PM +0530, Jatin Davey wrote: >> On 4/14/2015 4:42 PM, Dominique Ramaekers wrote: >>> About Spice: I think it’s good practice to use spice because it improves >>> the performance of the VM in general by improving screen performance. If >>> your VM is constantly displaying output, you’ll probably will notice a >>> difference. >>> >> [Jatin] Ok, This is not my concern as of now. I will take a look at it >> sometime later. >>> About virtio: You can see it in the settings. Better yet, it’s in your >>> XML. If you post your XML, we can take a look… >>> >> Here is the xml associated with my VM: >> >> ******************************** >> <domain type='kvm'> >> <devices> >> <emulator>/usr/libexec/qemu-kvm</emulator> >> <disk type='file' device='disk'> >> <driver name='qemu' type='qcow2' cache='none'/> >> <source file='/var/lib/libvirt/images/****.qcow2'/> >> <target dev='hda' bus='ide'/> >> <address type='drive' controller='0' bus='0' target='0' unit='0'/> >> </disk> > This disk is configured to use IDE, so performance of anything that does > disk I/O is going to be terrible. You really want to be using virtio. > >> <interface type='bridge'> >> <mac address='52:54:00:c9:58:c9'/> >> <source bridge='br332'/> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> >> </interface> > This doesn't have any model listed at all, so it will be falling back to > a generic emulated NIC. Again performance of this is likely going to be > terrible for anything doing network I/O. You want to be using virtio for > this too. > > Regards, > DanielHow do i make use of virtio for the both disk and network that you have mentioned above ? Any pointers to it would be helpful. Thanks Jatin