From: Muhammad Atif Subject: Re: some questions about Xenoprof Date: Sun, 4 Jan 2009 21:37:31 -0800 (PST) Message-ID: <63051.73885.qm@web52603.mail.re2.yahoo.com> References: <7e45e2ac0901041951j13915fadkf058878f2d259464@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2065909296==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weiming Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============2065909296== Content-Type: multipart/alternative; boundary="0-324379315-1231133851=:73885" --0-324379315-1231133851=:73885 Content-Type: text/plain; charset=us-ascii Nope, you need to either tell xenoprof to do active profiling or passive oprofiling, else it will only do profiling for dom0 For active profile do something like this, opcontrol --start-daemon --active-domains=3,4 #here 3,4 are domIDs which we need to profile. This will start the daemon but profiling will not start...... Now go to domU's opcontrol --start Go to dom0, opcontrol --start go to domU opcontrol --dump opreport This will give you domU profile..... For passive domain profiling, you need to patch the oprofile userland code. I would recommend oprofile-0.9.3. First download oprofile-0.9.3 and then patch it. The patch can be downloaded from http://xenoprof.sourceforge.net/ Best Regards, Muhammad Atif Best Regards, Muhammad Atif ________________________________ From: weiming To: Niraj Tolia Cc: "xen-devel@lists.xensource.com" ; "Santos, Jose Renato G" Sent: Monday, January 5, 2009 3:02:50 PM Subject: Re: [Xen-devel] some questions about Xenoprof Hi Niraj, Thanks for letting me know the "--separate=cpu" option. As regarding collecting system-wide events, is running the command "opcontrol --start --no-vmlinux --event=XXXX:YYYY:ZZZZ" on dom0 enough? I need host-level statistics, not just of dom0 itself. Thanks! zwm On Sun, Jan 4, 2009 at 10:51 PM, Niraj Tolia wrote: On Sun, Jan 4, 2009 at 7:32 PM, weiming wrote: > Hi, > > I want to use Xenoprof to monitors some system-wide events (like L2 misses > etc). > > 1. I'm using Xen 3.3. I guess I don't need to patch it as I find that a > hypercall and some source codes related to xenoprof are already there. So I > just downloaded the patch against oprofile. After that, when I run opcontrol > --help, I found that "--xen" was listed as an option. So I think my > installation should be OK. > > 2. I will run some workloads on domU. What I want to monitor is the > system-wide event counts like L2_LINES_IN. What should I do? Is running > "opcontrol --start --no-vmlinux --event=XXXX:YYYY:ZZZZ" on dom0 enough? Need > I specify "--passive-domains" or "--active-domains" ? > > 3. I'm running the system on a muliti-core machine. Can Xenoprof list the > event counters per core? Not per physical core. However, from what I understand, xenoprof can list the event counters per VCPU if you use the --separate=cpu option. So, you could pin the VCPUs to cores if that is what you really want. Second, the current version of xenoprof has a bug that prevents it from correctly collecting per-VCPU info. Renato (cc-ed) should have a patch to fix this though. Cheers, Niraj -- Niraj Tolia, Researcher, HP Labs http://www.hpl.hp.com/personal/Niraj_Tolia/ --0-324379315-1231133851=:73885 Content-Type: text/html; charset=us-ascii
Nope, you need to either tell xenoprof to do active profiling or passive oprofiling, else it will only do profiling for dom0

For active profile do something like this,

opcontrol --start-daemon --active-domains=3,4           #here 3,4 are domIDs which we need to profile.
This will start the daemon but profiling will not start......

Now go to domU's
opcontrol --start

Go to dom0,
opcontrol --start

go to domU
opcontrol --dump
opreport

This will give yo u domU profile.....


For passive domain profiling, you need to patch the oprofile userland code. I would recommend oprofile-0.9.3.
First download oprofile-0.9.3 and then patch it. The patch can be downloaded from http://xenoprof.sourceforge.net/


 
Best Regards,
Muhammad Atif
 
Best Regards,
Muhammad Atif



From: weiming <zephyr.zhao@gmail.com>
To: Niraj Tolia <ntolia@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com&g t;; "Santos, Jose Renato G" <joserenato.santos@hp.com>
Sent: Monday, January 5, 2009 3:02:50 PM
Subject: Re: [Xen-devel] some questions about Xenoprof

Hi Niraj,

Thanks for letting me know the "--separate=cpu" option.

As regarding collecting system-wide events, is running the command "opcontrol --start --no-vmlinux --event=XXXX:YYYY:ZZZZ" on dom0 enough? I need host-level statistics, not just of dom0 itself.

Thanks!
zwm


On Sun, Jan 4, 2009 at 10:51 PM, Niraj Tolia <ntolia@gmail.com> wrote:
On Sun, Jan 4, 2009 at 7:32 PM, weiming <zephyr.zhao@gmail.com> wrote:
> Hi,
>
> I want to use Xenoprof to monitors some system-wide events (like L2 misses
> etc).
>
> 1. I'm using Xen 3.3. I guess I don't need to patch it as I find that a
> hypercall and some source codes related to xenoprof are already there. So I
> just downloaded the patch against oprofile. After that, when I run opcontrol
> --help, I found that "--xen" was listed as an option. So I think my
> installation should be OK.
>
> 2. I will run some workloads on domU. What I want to monitor is the
> system-wide event counts like L2_LINES_IN. What should I do? Is running
> "opcontrol --start --no-vmlinux --event=XXXX:YYYY:ZZZZ" on dom0 enough? Need
> I specify "--passive-domains" or "--active-domains" ?
>
> 3. I'm running the system on a muliti-core machine. Can Xenoprof list the
> event counters per core?


Not per physical core. However, from what I understand, xenoprof can
list the event counters per VCPU if you use the --separate=cpu option.
So, you could pin the VCPUs to cores if that is what you really want.

Second, the current version of xenoprof has a bug that prevents it
from correctly collecting per-VCPU info. Renato (cc-ed) should have a
patch to fix this though.

Cheers,
Niraj

--
Niraj Tolia, Researcher, HP Labs
http://www.hpl.hp.com/personal/Niraj_Tolia/


--0-324379315-1231133851=:73885-- --===============2065909296== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2065909296==--