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

Re: [Xen-devel] Measure performance of hypercalls


  • To: "Tommy Huang" <nbp0204@xxxxxxxxx>
  • From: "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx>
  • Date: Wed, 15 Oct 2008 12:17:20 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 15 Oct 2008 04:17:46 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=QFJOgSK1OvR4NcMDvRK+NMuSWDdwm0vL/7p+hg/xfxYxfyfNmQiYznagT3nIhSki5r IWiWXjacUncHhR5AlqPdMXB1TGFHQRSFb0O5SIG9jMNGTA4qjTgvmj+tI+5ESc3kpfI/ PEqpcpYvesQCUboSWlVEaH98l1WuPbsaxzKew=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Getting the frequency of hypercalls can be done using xentrace.  See
xen/include/public/trace.h for the appropriate mask and pertinent
trace records.

If you want to find the performance of hypercalls, you'll have to add
some instrumentation.  You can extend xentrace to find out the number
of *cycles* executed in a hypercall by taking a trace (with a
timestamp) at hypercall entry and exit.  We do this already for
vmenter/vmexit.

 -George

On Wed, Oct 15, 2008 at 3:12 AM, Tommy Huang <nbp0204@xxxxxxxxx> wrote:
> Hi all,
>
> I am wondering how to measure the performance of hypercalls.
> For example, how many X86 instructions are executed in Xen when you issue a
> hypercall.
> Also, how to get the frequency of hypercalls which is that how many
> hypercalls have been issued during a period of time?
> Thanks in advance.
>
> - Nb
>
> _______________________________________________
> 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®.