From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: [libvirt] Qemu/KVM is 3x slower under libvirt (due to vhost=on) Date: Wed, 28 Sep 2011 11:29:35 +0100 Message-ID: <20110928102935.GQ21102@redhat.com> References: <4E82118D.2010702@shiftmail.org> <20110928075138.GC21102@redhat.com> <4E82E6AF.5070009@shiftmail.org> <20110928092859.GO21102@redhat.com> <4E82ED8D.10004@shiftmail.org> <20110928095339.GP21102@redhat.com> <4E82F49D.5000304@shiftmail.org> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: kvm@vger.kernel.org, libvir-list@redhat.com To: Reeted Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1632 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765Ab1I1K3q (ORCPT ); Wed, 28 Sep 2011 06:29:46 -0400 Content-Disposition: inline In-Reply-To: <4E82F49D.5000304@shiftmail.org> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Sep 28, 2011 at 12:19:09PM +0200, Reeted wrote: > On 09/28/11 11:53, Daniel P. Berrange wrote: > >On Wed, Sep 28, 2011 at 11:49:01AM +0200, Reeted wrote: > >>YES! > >>It's the vhost. With vhost=on it takes about 12 seconds more time to boot. > >> > >>...meaning? :-) > >I've no idea. I was always under the impression that 'vhost=on' was > >the 'make it go much faster' switch. So something is going wrong > >here that I cna't explain. > > > >Perhaps one of the network people on this list can explain... > > > > > >To turn vhost off in the libvirt XML, you should be able to use > > for the interface in question,eg > > > > > > > > > > > > > > > > > Ok that seems to work: it removes the vhost part in the virsh launch > hence cutting down 12secs of boot time. > > If nobody comes out with an explanation of why, I will open another > thread on the kvm list for this. I would probably need to test disk > performance on vhost=on to see if it degrades or it's for another > reason that boot time is increased. Be sure to CC the qemu-devel mailing list too next time, since that has a wider audience who might be able to help 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 :|