xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: veerasena reddy <veeruyours@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: Are there any tools to calculate the cost of a VM exit
Date: Tue, 07 Jun 2011 08:04:43 +0100	[thread overview]
Message-ID: <CA138C1B.1BAFC%keir.xen@gmail.com> (raw)
In-Reply-To: <BANLkTi=z8uDqLYGsE-oKVD181hGm6OALxw@mail.gmail.com>

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

      reply	other threads:[~2011-06-07  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA138C1B.1BAFC%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=veeruyours@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).