From: Ingo Molnar Subject: Re: [RFC] VMX CR3 cache Date: Mon, 28 Jan 2008 18:37:08 +0100 Message-ID: <20080128173707.GB22487@elte.hu> References: <20080128160444.GA3821@dmt> <20080128171734.GA19705@elte.hu> <20080128173530.GA4956@dmt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , Avi Kivity To: Marcelo Tosatti Return-path: Content-Disposition: inline In-Reply-To: <20080128173530.GA4956@dmt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org * Marcelo Tosatti wrote: > > when i did the testing then i was able to get zero VM exits in the > > lat_ctx hotpath and get the same performance as on native. The above > > numbers you got suggest that this is not the case. (your lat_ctx > > numbers on native are probably around 1 usec, right?) > > Actually, native is around 5usec: > > # bin/x86_64-linux-gnu/lat_ctx -N 10 2 > > "size=0k ovr=1.09 > 2 5.21 > > So it does get pretty close to native, but the problem is that its > difficult to see improvements on macrobenchmarks (even hackbench which > remotely resembles a real scenario is not improving). try running your shell on one CPU: taskset -p 1 $$ that should give you the 'raw' single-CPU context switch results. Ingo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/