Hi Corey, Thank you. Your advice is very helpful to me. I will try again with the following environment.
1) Kernel 2.6.18 source tree including only perfmon patch linux-2.6.18-53.1.6.el5-x86_64.papi.tar.gz perfmon-new-base-060926.tar.gz No perfctr patch 2) pfmon-3.2 pfmon-3.2-060926.tar.gz 3) libpfm-3.2 libpfm-3.2-060926.tar.gz Regards, Satoshi Isono -----Original Message----- From: Corey J Ashford [mailto:cjash...@us.ibm.com] Sent: Tuesday, June 09, 2009 4:22 AM To: Satoshi Isono Cc: perfmon-ML; Pradeep Rao Subject: RE: [perfmon2] Precondition before installing Hello Satoshi, You cannot have both the perfctr and perfmon kernel patches at the same time. They both act in the same role: to provide access to the chip's PMU from user space. So you only need one of them. Perfctr is no longer being developed, and the newer of the two is perfmon. One other thing - this is somewhat confusing, but libpfm is a user-space library which can be used with perfctr or perfmon. libpfm wasn't designed to work exclusively with perfmon, though the same person (Stephane Eranian) wrote both libpfm and perfmon. I hope that clears things up a little. - Corey "Satoshi Isono" <is...@cray.com> wrote on 06/08/2009 07:43:44 AM: > Dear Pradeep, Corey, > > Thanks for your explanation. I understand we should choose library > for purpose. In my case, I did setup PAPI and perfctr but particular > events was not able to counted through this environment. And I found > an article of perfmon2, which is able to count this event. OK, I > will try to add libpfm/perfmon on same kernel image having PAPI and perfctr. > > Dear members, > > I have recompiled kernel 2.6.18 which is patched perfmon-new- > base-060926. It seems that perfmon kernel modules was created. > > # cd /lib > # find . -name "*perfmon*" > ./modules/2.6.18-53.1.6.el5-PAPI/kernel/arch/x86_64/perfmon > ./modules/2.6.18-53.1.6.el5-PAPI/kernel/arch/x86_64/perfmon/perfmon_p4.ko > ./modules/2.6.18-53.1.6.el5- > PAPI/kernel/arch/x86_64/perfmon/perfmon_gen_ia32.ko > ./modules/2.6.18-53.1.6.el5- > PAPI/kernel/arch/x86_64/perfmon/perfmon_p4_pebs_smpl.ko > ./modules/2.6.18-53.1.6.el5-PAPI/kernel/arch/x86_64/perfmon/perfmon_k8.ko > > However, when I try to load these module, I have errors. > > # insmod ./modules/2.6.18-53.1.6.el5- > PAPI/kernel/arch/x86_64/perfmon/perfmon_p4.ko > insmod: error inserting './modules/2.6.18-53.1.6.el5- > PAPI/kernel/arch/x86_64/perfmon/perfmon_p4.ko': -1 Invalid parameters > > # pfmon -l > cannot initialize library. Most likely host PMU is not supported. > > Could you advice me, how do I load perfmon* modules? > I also did the compilation of libpfm-3.2-060926 successfully. Does > above error have relation with libpfm? > > Regards, > Satoshi Isono > > -----Original Message----- > From: Corey J Ashford [mailto:cjash...@us.ibm.com] > Sent: Saturday, June 06, 2009 2:48 AM > To: Pradeep Rao > Cc: Satoshi Isono; perfmon-ML > Subject: Re: [perfmon2] Precondition before installing > > PAPI isn't really a tool in itself. It's an API (library) at a somewhat > higher abstraction level than libpfm. It provides a set abilities that > are not in libpfm (without some sort of tool). For example, it provides > an API for profiling, scaling counts for multiplexed events, etc., and it > provides this more abstract API on top of a number of possible > "substrates", including libpfm/perfmon, perfctr, and some other non-Linux > substrates as well (e.g. PMAPI on AIX) > > Regards, > > - Corey > > Corey Ashford > Software Engineer > IBM Linux Technology Center, Linux Toolchain > cjash...@us.ibm.com > > > Pradeep Rao <pradeep....@isit.or.jp> wrote on 06/05/2009 01:04:22 AM: > > > Hi, > > > > Probably not the correct terminology, but it may help if you view pfmon > as a > > "tool". You can, in fact, write your own tools (look under examples). > > But as a tool writer, it would help if you have some APIs to help > > you access the > > hardware monitors. libpfm and perfmon (kernel) can provide this > > interface (along > > with a host of added features !) > > > > Both PAPI and pfmon "tools" use this interface (based on the > > platform), but the > > PAPI tools can also use other interfaces (e.g., driver interface > > perfctr on some > > PPC models). If you look at the configure statement below, you'll > > see that he's > > configuring the "tool" to use perfmon and libpfm. > > Have a look at the Makefiles under PAPI, and you'll see that other > > combinations > > are possible based on the platform on which you want to run monitoring. > > > > > It seems he uses PAPI. If you guess/know the reason, can you > > please tell me it? > > > > The reason behind his choice may be that PAPI supports a few > > features/platforms > > that pfmon currently doesn't support. Old PPCs and Multiple event sets > for > > sampling are things that come to mind. > > Other tradeoffs are involved - you can look up the interface > > specification for > > further details (at > > http://www.hpl.hp.com/techreports/2004/HPL-2004-200R1.html > > > > Regards, > > Pradeep > > > > > > Satoshi Isono wrote: > > > Dear Pradeep, > > > > > > Thank you for reply. I found the below article on PAPI ML. > > > > > > http://lists.cs.utk.edu/pipermail/ptools-perfapi/2009-May/002895.html > > > > > >> I have installed 2.6.28 vanilla and the latest perfmon2 patches > > >> against it.(with libpfm) > > >> > > >> I'm building papi with: > > >> > > >> ./configure \ > > >> --prefix=/usr \ > > >> --with-bitmode=64 \ > > >> --with-perfmon=3.8 \ > > >> --with-pfm-incdir=/usr/include \ > > >> --with-pfm-libdir=%{_libdir} ; > > >> > > >> and libpfm is installed in : /usr/lib64/libpfm.so.3.8.0 > > > > > > It seems he uses PAPI. If you guess/know the reason, can you > > please tell me it? > > > > > > Regards, > > > Satoshi Isono > > > > > > -----Original Message----- > > > From: Pradeep Rao [mailto:pradeep....@isit.or.jp] > > > Sent: Friday, June 05, 2009 12:41 PM > > > To: Satoshi Isono > > > Cc: perfmon-ML > > > Subject: Re: [perfmon2] Precondition before installing > > > > > > Hi, > > > > > > You do not need PAPI. > > > You can do the following to get the pfmon tools setup on your > platform: > > > * Patch your kernel with perfmon-new-base-xxx and compile kernel > > with perfmon > > > enabled. > > > * build/install libpfm > > > * build/install pfmon tools > > > > > > Regards, > > > Pradeep > > > > > > > > > > > > Satoshi Isono wrote: > > >> Thanks for your advice. > > >> > > >> More concern. If I want to use pfmon tools, should I install PAPI and > > > >> PAPI patch into kernel source? > > >> > > >> > > >> > > >> Sorry, I don’t understand completely needed packages about pfmon. > > >> > > >> Could you advice or give me some opinions? > > >> > > >> > > >> > > >> Regards, > > >> > > >> Satoshi Isono > > >> > > >> > > >> > > >> *From:* stephane eranian [mailto:eran...@googlemail.com] > > >> *Sent:* Friday, June 05, 2009 1:24 AM > > >> *To:* Satoshi Isono > > >> *Cc:* perfmon2-devel@lists.sourceforge.net > > >> *Subject:* Re: [perfmon2] Precondition before installing > > >> > > >> > > >> > > >> Hi, > > >> > > >> On Thu, Jun 4, 2009 at 11:28 AM, Satoshi Isono <is...@cray.com > > >> <mailto:is...@cray.com>> wrote: > > >> > > >> Dear all, > > >> > > >> I try to install perfmon2 into kernel 2.6.18-53.1.6.el5-PAPI. My aim > is > > >> to collect L3 cache events on Barcelona (QC AMD Opteron 8356). I show > > >> /proc/cpuinfo as below. > > >> > > >> processor : 15 > > >> vendor_id : AuthenticAMD > > >> cpu family : 16 > > >> model : 2 > > >> model name : Quad-Core AMD Opteron(tm) Processor 8356 > > >> stepping : 3 > > >> cpu MHz : 2300.096 > > >> cache size : 512 KB > > >> ... > > >> > > >> Or do I have to use latest kernel combination? > > >> > > >> (3) > > >> * Kernel source 2.6.28-1 > > >> pfmon-3.8.tar.gz > > >> libpfm-3.8.tar.gz > > >> perfmon-new-base-090219.tar.gz > > >> > > >> > > >> > > >> That configuration will work. I don't think the others will. If you > have > > >> > > >> a choice, I would not even bother and I would use the latest. > > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------------------------ > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> OpenSolaris 2009.06 is a cutting edge operating system for > enterprises > > >> looking to deploy the next generation of Solaris that includes the > latest > > >> innovations from Sun and the OpenSource community. Download a copy > and > > >> enjoy capabilities such as Networking, Storage and Virtualization. > > >> Go to: http://p.sf.net/sfu/opensolaris-get > > >> > > >> > > >> > ------------------------------------------------------------------------ > > >> > > >> _______________________________________________ > > >> perfmon2-devel mailing list > > >> perfmon2-devel@lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > > > > > ------------------------------------------------------------------------------ > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > looking to deploy the next generation of Solaris that includes the > latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > perfmon2-devel mailing list > > perfmon2-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel