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] [PATCH] Xenoprof: Enabling performance profiling in Xen

To: "Santos, Jose Renato G (Jose Renato Santos)" <joserenato.santos@xxxxxx>, <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Xenoprof: Enabling performance profiling in Xen
From: Andrew Theurer <habanero@xxxxxxxxxx>
Date: Mon, 11 Apr 2005 17:53:07 -0500
Cc: "Turner, Yoshio" <yoshio_turner@xxxxxx>, Aravind Menon <aravind.menon@xxxxxxx>, Bin Ren <bin.ren@xxxxxxxxx>, "Santos, Jose Renato G \(Jose Renato Santos\)" <joserenato.santos@xxxxxx>, G John Janakiraman <john@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Apr 2005 22:53:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6C21311CEE34E049B74CC0EF339464B902FB3B@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6C21311CEE34E049B74CC0EF339464B902FB3B@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
On Friday 08 April 2005 22:10, Santos, Jose Renato G (Jose Renato 
Santos) wrote:
>   I am posting patches for xenoprof in the next three messages
>   (one patch file in each message).
>
>   These patches enable system-wide statistical profiling
>   in Xen environments. Xenoprof was developed at HP Labs by
>   modifying and extending the original OProfile code for linux
>
>  The 3 patch files are:
>
>   1) xenoprof-1.0-xen-2.0.5.patch:
>       - Patch for Xen
>   2) xenoprof-1.0-xenolinux-2.6.10.patch
>       - Patch for the linux sparse tree in Xen source tree (2.6.10)
>   3) xenoprof-1.0-oprofile-0.8.1
>       - Patch for Oprofile 0.8.1
>
>   The attached file provides an overview of Xenoprof
>   and how to use it.

Thanks very much; this will come in very handy.  A few questions:

1) When should the --xen option be specified?  My quick testing shows 
that only when combining with the --start option does opcontrol process 
the --xen option fully.  For example, running "opcontrol --vmlinux=yyy 
--xen=zzz; opcontrol --start" does not work, but "opcontrol 
--vmlinux=xxx; opcontrol --start --xen=zzz" does work for me. 

2) So far I have been able to profile domain0 (running SDET) with 
nothing else running, but I can't seem to account for another domain 
running at the same time.  For example, I create a domU (dom id 1) 
running a cpu bound task, I start oprofile with --passive-domains=1, 
but I do not get any ticks representing time spent in dom1 (all I want 
is coarse grain here).  In the sequence of commands to start oprofile, 
is there a particular invocation of opcontrol to specify the 
--passive-domains option?  So far I have been doing "oprofile 
--vmlinux=xxx; oprofile --start --xen=zzz --passive-domains=1"

3) So far I cannot get an samples in domains other than domain0.  Most 
likely user error here.  Can a domU be an initiator?  For example, if I 
have two domains, dom0 and dom1, can dom1 do "everything" while leaving 
dom0 totally uninvolved?

Thanks very much!

-Andrew Theurer

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