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] Are there any tools to calculate the cost of a VM exit

To: veerasena reddy <veeruyours@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Are there any tools to calculate the cost of a VM exit
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Tue, 07 Jun 2011 08:04:43 +0100
Cc:
Delivery-date: Tue, 07 Jun 2011 00:05:45 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=E+sYyuLpG2QLlOlbVdTCa3AA8Q5+acScZCymP9xhRVk=; b=G2xC1KzMatZjFk7MW873Cl/bspag3uooBqZYtkvap8h+rBb6JkCXLi9x32cpALA7m1 KDjL4iMXdN87wJSKBxHQ0xLkadr/TA2PZluxG7ffGTJxgyRljVOzPNrEadAtsvf2KlEP uf5IQkAmp/FwGcbvt7t6QZOoLBFkST07nZoJo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=oVrNz1bbYkKP3ZWe6ZG7WA3A8vqYP7bgaH2h3hLlKX8c4vb5rgCSfOzR/Ask+JQr6j yyMcCxQj0F5f95JRiffANU92gC0zU+N8M+AIhKQVgYVnItY0WWdnP/LVlk7XlpltA3+S MJ77vorih3AeddqN9ICzc8C3HsiVHbhQJGbPw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTi=z8uDqLYGsE-oKVD181hGm6OALxw@xxxxxxxxxxxxxx>
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: Acwk4S0cQPxNx6vLH0Oh7RoEN02lww==
Thread-topic: [Xen-devel] Are there any tools to calculate the cost of a VM exit
User-agent: Microsoft-Entourage/12.29.0.110113
On 07/06/2011 07:33, "veerasena reddy" <veeruyours@xxxxxxxxx> wrote:

> Hi,
> 
> I am looking to add a new hypercall to XEN-3.4.3 and invoke this new hypercall
> very often (may be 50 to 500 thousands of times a sec) from a HVM guest.
> I would like to see the cost of this to tradeoff with performance.
> 
> Could you please advice if there are tools for this or any other method that i
> can use?

In the HVM guest:
 gettimeofday() (or RDTSC, or any other handy timestamp)
 <call hypercall in a tight loop 10,000,000 times>
 gettimeofday() (or equiv, as above)

 -- Keir

> Thanks in advance.
> 
> Regards,
> VSR.
> 
> 
> _______________________________________________
> 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>