From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: First performance numbers Date: Sat, 20 Sep 2008 08:55:05 +0200 Message-ID: <20080920065505.GJ27426@8bytes.org> References: <1221658886-14109-1-git-send-email-agraf@suse.de> <20080919214824.GA11410@amd.com> <48D4524A.80902@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Joerg Roedel , Alexander Graf , kvm@vger.kernel.org, anthony@codemonkey.ws, avi@qumranet.com To: Avi Kivity Return-path: Received: from 8bytes.org ([88.198.83.132]:59313 "EHLO 8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbYITGzJ (ORCPT ); Sat, 20 Sep 2008 02:55:09 -0400 Content-Disposition: inline In-Reply-To: <48D4524A.80902@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Sep 19, 2008 at 06:30:50PM -0700, Avi Kivity wrote: > Joerg Roedel wrote: > >Ok, here are some performance numbers for nested svm. I ran kernbench -M > >on a virtual machine with 4G RAM and 1 VCPU (since nesting SMP guests > >do currently not work). I measured simple virtualization with a shadow > >paging guest on bare metal and within a nested guest (same guest image) > >on a nested paging enabled first level guest. > > > > | Shadow Guest (100%) | Nested Guest (X) | X > >-----------------+---------------------+-------------------+-------- > >Elapsed Time | 553.244 (1.21208) | 1185.95 (20.0365) | 214.363% > >User Time | 407.728 (0.987279) | 520.434 (8.55643) | 127.642% > >System Time | 144.828 (0.480645) | 664.528 (11.6648) | 458.839% > >Percent CPU | 99 (0) | 99 (0) | 100.000% > >Context Switches | 98265.2 (183.001) | 220015 (3302.74) | 223.899% > >Sleeps | 49397.8 (31.0274) | 49460.2 (364.84) | 100.126% > > > >So we have an overall slowdown in the first nesting level of more than > >50%. Mostly because we spend so much time in the system level. Seems > >there is some work to do for performance improvements :-) > > > > > > Do you have kvm_stat output for the two cases? Also interesting to run > kvm_stat on both guest and host. Sorry, no. But I can repeat the measurements and gather these numbers. Joerg