xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Are there any tools to calculate the cost of a VM exit
@ 2011-06-07  6:33 veerasena reddy
  2011-06-07  7:04 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: veerasena reddy @ 2011-06-07  6:33 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 348 bytes --]

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?

Thanks in advance.

Regards,
VSR.

[-- Attachment #1.2: Type: text/html, Size: 383 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Are there any tools to calculate the cost of a VM exit
  2011-06-07  6:33 Are there any tools to calculate the cost of a VM exit veerasena reddy
@ 2011-06-07  7:04 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2011-06-07  7:04 UTC (permalink / raw)
  To: veerasena reddy, xen-devel

On 07/06/2011 07:33, "veerasena reddy" <veeruyours@gmail.com> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-07  7:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  6:33 Are there any tools to calculate the cost of a VM exit veerasena reddy
2011-06-07  7:04 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).