From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: sync guest calls made async on host - SQLite performance Date: Wed, 07 Oct 2009 22:12:19 +0200 Message-ID: <4ACCF623.2010900@redhat.com> 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=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Dustin Kirkland , Anthony Liguori , RW , kvm@vger.kernel.org To: Matthew Tippett Return-path: Received: from mx1.redhat.com ([209.132.183.28]:26638 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755973AbZJGUMz (ORCPT ); Wed, 7 Oct 2009 16:12:55 -0400 In-Reply-To: <4ACCEC9F.7090309@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/07/2009 09:31 PM, Matthew Tippett wrote: > 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, > > # apt-get install phoronix-test-suite > > $ phoronix-test-suite benchmark sqlite > > Answer the questions (test-names, etc, etc), it will download sqlite, > build it and execute the test. By default the test runs three > timesand averages the results. The results experienced should be > similar to the values identified at > > http://www.phoronix.com/scan.php?page=article&item=linux_2631_kvm&num=3 > > Which is approximately 12 minutes for the native, and about 60 seconds > for the guest. > > Given that the performance under the guest is expected to be around 60 > seconds, I would suggest confirming performance there first. What is the data set for this benchmark? If it's much larger than guest RAM, but smaller than host RAM, you could be seeing the effects of read caching. Another possiblity is barriers and flushing. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.