veerasena reddy
2011-Jun-07 06:33 UTC
[Xen-devel] Are there any tools to calculate the cost of a VM exit
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. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2011-Jun-07 07:04 UTC
Re: [Xen-devel] Are there any tools to calculate the cost of a VM exit
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_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel