WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How expensive is a VM EXIT?

To: "Nadolski, Ed" <Ed.Nadolski@xxxxxxx>, NAHieu <nahieu@xxxxxxxxx>
Subject: Re: [Xen-devel] How expensive is a VM EXIT?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 04 Mar 2009 18:49:16 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 04 Mar 2009 10:49:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8115AF16522A3D4383C1FF753036713F76B84D2A@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmcXkSx132/LweuTM6fde+5jAjHDAAR1d1DABSsaRAAAGdMsw==
Thread-topic: [Xen-devel] How expensive is a VM EXIT?
User-agent: Microsoft-Entourage/12.15.0.081119
Either of those can give you profiling info about common paths through the
hypervisor, and time spent in the hypervisor. For the specific
microbenchmark of time taken for a processor to execute a vmexit, I'd hack
in custom tracing to get a precise measurement.

 -- Keir

On 04/03/2009 18:39, "Nadolski, Ed" <Ed.Nadolski@xxxxxxx> wrote:

> Is there a good tool to look at for this -- xentrace, xenoprofile, other?
> 
> Thanks,
> Ed
> 
> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Keir Fraser
> Sent: Wednesday, March 04, 2009 1:46 AM
> To: NAHieu
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] How expensive is a VM EXIT?
> 
> On 04/03/2009 00:15, "NAHieu" <nahieu@xxxxxxxxx> wrote:
> 
>> On Wed, Mar 4, 2009 at 1:34 AM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
>> wrote:
>>> For just the VMEXIT itself, it's probably about 1000-1500 cycles on the
>>> latest processors. I haven't measured it very recently though.
>>> 
>> 
>> Could you explain how do you measure the cycles for VMEXIT?
> 
> RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the
> hypervisor on entry.
> 
>  -- Keir
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>