From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoP6Z-0006eG-2Z for qemu-devel@nongnu.org; Wed, 25 Aug 2010 19:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoP6X-0005kY-Qg for qemu-devel@nongnu.org; Wed, 25 Aug 2010 19:10:02 -0400 Received: from lo.gmane.org ([80.91.229.12]:40851) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoP6X-0005kO-Jo for qemu-devel@nongnu.org; Wed, 25 Aug 2010 19:10:01 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OoP6Q-0007QC-HS for qemu-devel@nongnu.org; Thu, 26 Aug 2010 01:09:54 +0200 Received: from adsl-69-234-189-191.dsl.irvnca.pacbell.net ([69.234.189.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Aug 2010 01:09:54 +0200 Received: from w41ter by adsl-69-234-189-191.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Aug 2010 01:09:54 +0200 From: walt Date: Wed, 25 Aug 2010 16:09:40 -0700 Message-ID: References: <4C7573A2.8030708@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4C7573A2.8030708@codemonkey.ws> Subject: [Qemu-devel] Re: qemu-kvm faster than qemu? List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 08/25/2010 12:48 PM, Anthony Liguori wrote: > On 08/25/2010 02:37 PM, walt wrote: >> Hi qemu team, >> >> I just discovered that qemu now offers kvm support, so I decided to >> compare it to qemu-kvm. >> >> I'm running the latest git versions of both programs on an AMD64 >> host running the latest kernel from Linus.git. >> >> The guest is Windows 7 on a qcow2 disk image and one kvm64 cpu. >> >> I find that qemu-kvm boots to the Win7 login prompt in 25 seconds, >> while qemu with kvm enabled takes about 45 seconds. > > > make sure you build qemu with --enable-io-thread. I built qemu both with and without io-thread, and it makes no difference at least in this particular experiment. (BTW, I found that qemu-kvm will not even compile with --enable-io-thread because qemu_mutex_lock_iothread becomes defined in two places.) > Also, what's your full command line? For qemu: /usr/local/bin/qemu-system-x86_64 -m 1024 -enable-kvm -cpu kvm64 w7.diff For qemu-kvm: /home/wa1ter/bin/qemu-system-x86_64 -m 1024 -enable-kvm -cpu kvm64 w7.diff Note that w7.diff is the same file in both cases: a qcow2 differencing disk made from the original qcow2 backing file w7.img. Thanks for your reply. I'm curious if anyone can reproduce this difference in speed.