From: Dulloor Subject: Re: profiling active RHEL 4 PV domains with xenoprof Date: Fri, 29 Jan 2010 12:50:11 -0500 Message-ID: <940bcfd21001290950x7f80bdd7pdb96b851a5ae2d31@mail.gmail.com> References: <4B623BED.6090603@yahoo-inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Santos, Jose Renato G" Cc: "xen-devel@lists.xensource.com" , Andrew Evans List-Id: xen-devel@lists.xenproject.org I didn't test active profiling much, because I was interested in profiling only the guest kernel. It could be the patches. I will take a look and get back. -dulloor On Fri, Jan 29, 2010 at 12:04 PM, Santos, Jose Renato G wrote: > > >> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Andrew Evans >> Sent: Thursday, January 28, 2010 5:38 PM >> To: xen-devel@lists.xensource.com >> Subject: [Xen-devel] profiling active RHEL 4 PV domains with xenoprof >> >> Hi, >> >> Is it necessary to run a xenoprof-patched oprofile in a PV >> domU being actively profiled? I ask because > > =A0 Yes, you need need xenoprof support both in the kernel and in the OPr= ofile user level tools in anctive profiled domain. >> >> http://xenoprof.sourceforge.net/xenoprof_2.0.txt >> >> seems to say no (no mention of --xen switch) but >> >> http://www.xen.org/files/summit_3/xenoprof_tutorial.pdf >> >> seems to say yes (specifies use of --xen in domUs). I'm >> running RHEL 4 in the domU I want to actively profile, and >> RHEL 4 provides the ancient >> oprofile-0.8.1 package, with no support for the --xen switch. >> I've gotten oprofile 0.9.6 with xenoprof patches built on > > > =A0Are you sure Oprofile user level tools has xenoprof support? > =A0The latest patch avaialable in http://xenoprof.sourceforge.net/ is for= oprofile 0.9.5 but you claim to be using 0.9.6 > =A0Try using 0.9.5 and apply the patch. > >> RHEL 4 but haven't been able to test it due to XENOPROF_start >> failing (see other message). >> > >> Another thing I'm confused about: the above xenoprof tutorial >> also specifies use of the --event switch in domUs, saying >> they must use the same event as dom0. Makes sense, but my >> domUs are PV, and oprofile says only timer interrupts are >> usable. So must I also use timer interrupts on dom0? >> > > =A0No, you should use the same event in dom0 and domU and not timer mode. > =A0If Oprofile is reporting timer mode in domU there is something wrong i= n its OProfile configuration; either you don't have the right patches or yo= u are not correctly synchronyzing dom0 and domU opcontrol commands. > > > =A0Renato > >> thanks, >> >> -Andrew >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >