[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Are there any tools to calculate the cost of a VM exit


  • To: veerasena reddy <veeruyours@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acwk4S0cQPxNx6vLH0Oh7RoEN02lww==
  • Thread-topic: [Xen-devel] Are there any tools to calculate the cost of a VM exit

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.