WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Measure performance of hypercalls

To: "Tommy Huang" <nbp0204@xxxxxxxxx>
Subject: Re: [Xen-devel] Measure performance of hypercalls
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received: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; bh=KTeJPUnY5kY/qOW89PUv7m34SEGROHIfe3AIozSIkY4=; b=RnwvI2A6O30ytYLeybntLcgIhSeZUzjQWJ5E55wqR1FHQKLvGndkA2IYUP/nhjrZLI ykcCa9VUk0NPrCs28s02iKGI4pciYapn7L51Yu2syRsWLdEMXnv4RNRfwsHXvrrGuSde pnfq+2jZY/kUmygP+Aay9UgdXFC9Fvtj9HrTE=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <aaf9e2330810141912n3de543cw21c8972f85b04a87@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <aaf9e2330810141912n3de543cw21c8972f85b04a87@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>