From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dustin Kirkland Subject: Re: sync guest calls made async on host - SQLite performance Date: Fri, 9 Oct 2009 01:05:26 -0500 Message-ID: References: <4ABC6AA5.6080909@tauceti.net> <4ABF4E95.5070100@redhat.com> <4ABF5596.9050207@gmail.com> <4AC259DC.2080807@codemonkey.ws> <4AC260BB.3090906@gmail.com> <4AC27355.3090303@codemonkey.ws> <4ACCC7A1.9060303@gmail.com> <4ACCEC9F.7090309@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Anthony Liguori , Avi Kivity , RW , kvm@vger.kernel.org To: Matthew Tippett Return-path: Received: from mail-ew0-f208.google.com ([209.85.219.208]:38357 "EHLO mail-ew0-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753570AbZJIGGD convert rfc822-to-8bit (ORCPT ); Fri, 9 Oct 2009 02:06:03 -0400 Received: by ewy4 with SMTP id 4so330331ewy.37 for ; Thu, 08 Oct 2009 23:05:26 -0700 (PDT) In-Reply-To: <4ACCEC9F.7090309@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Oct 7, 2009 at 2:31 PM, Matthew Tippett wr= ote: > The benchmark used was the sqlite subtest in the phoronix test suite. > > My awareness and involvement is beyond "reading a magazine article", = I can > elaborate if needed, but I don't believe it is necessary. > > Process for reproduction, assuming Karmic, > > =A0 =A0 =A0 =A0# apt-get install phoronix-test-suite > > =A0 =A0 =A0 =A0$ phoronix-test-suite benchmark sqlite > > Answer the questions (test-names, etc, etc), it will download sqlite,= build > it and execute the test. =A0By default the test runs three timesand a= verages > the results. =A0The results experienced should be similar to the valu= es > identified at > > http://www.phoronix.com/scan.php?page=3Darticle&item=3Dlinux_2631_kvm= &num=3D3 > > Which is approximately 12 minutes for the native, and about 60 second= s for > the guest. I have tried this, exactly as you have described. The tests took: * 1162.08033204 seconds on native hardware * 2306.68306303 seconds in a kvm using if=3Dscsi disk * 405.382308006 seconds in a kvm using if=3Dvirtio I am using an up-to-date Karmic amd64 system, running qemu-kvm-0.11.0, on a Thinkpad x200, dual 2.4GHz, 4GB, and a somewhat slow 5400rpm SATA disk. The filesystem is ext4 in both the guest and the host. So I'm not seeing a 10x or order-of-magnitude improvement by doing this in the guest. With a scsi interface, it's twice as slow. With virtio, it's a good bit faster, but not 10x faster. That said, I don't know that I'm all that concerned about this, right now. I haven't looked in detail at what this test from phoronix is actually doing (nor do I really have the time to do so). Sorry. :-Dustin