From: liudawei <dbm...@ya...> - 2007-01-03 03:54:10
|
I have encountered the same problem.I am now using AMD too the conflicts events is PAPI_BR_MSP and PAPI_L1_TCM the two events can not be configured in the single xml configuration file. Any comments? per...@li... 写道: Send PerfSuite-users mailing list submissions to per...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/perfsuite-users or, via email, send a message with subject or body 'help' to per...@li... You can reach the person managing the list at per...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of PerfSuite-users digest..." Today's Topics: 1. Re: psrun and 2.6 kernel (Niall Moran) 2. Re: psrun and 2.6 kernel (Niall Moran) 3. Re: psrun and 2.6 kernel (Rick Kufrin) 4. Re: psrun and 2.6 kernel (Niall Moran) ---------------------------------------------------------------------- Message: 1 Date: Mon, 20 Nov 2006 12:46:17 +0000 From: Niall Moran Subject: Re: [PerfSuite-users] psrun and 2.6 kernel To: Rick Kufrin Cc: per...@li... Message-ID: <200...@ic...> Content-Type: text/plain; charset="us-ascii" Hi Rick, > >I have just built and installed perfsuite 0.6.2 alpha5. I built it with > >papi support and built it against papi 3.2.1. I am running on an amd > >opteron with a perfctr patched SLES 2.6.5-7 kernel. Once built all the > >perfsuite tests completed correctly. However when I try to run psrun I > >get the following error: > > > > libpsrun fatal error: error reported by performance software layer > > > >I found on an earlier thread that this error was a > >result of using a 2.6 kernel when there was no support for it. However > >version 0.6.2 alpha 5 lists the 2.6 kernel. Any help or suggestions > >would be much appreciated. > > > > You're correct, the 2.6 kernel is now supported. My guess about what's > happening is that the events being selected by default are including > one that isn't available in PAPI 3.2.1. For your installation, the > defaults should be in the file: > > $PREFIX/share/perfsuite/xml/pshwpc/papi3_k8.xml > > I would suggest running "psinv -p" to verify which PAPI events are > available on your system and compare those with the events listed in > the above file. If there is one that does not match, just comment it out > in the file and try again. If that fixes the problem, then please let me > know and I'll make the appropriate change in the distribution for the next > release. If it doesn't then advise of that as well and we can look a > little closer to try and get you up and running. Thanks for getting back to me. I have checked the list of supported events from psinv -p against the events listed in the papi3_k8.xml configuration file and all the events in the config file are supported. I also ran psrun -i to ensure that it is using the papi3_k8.xml config file. Attached is the output of psinv -p and also the the config file papi3_k8.xml. Niall. -------------- next part -------------- System Information - Node Name: h1cu36 OS Name: Linux OS Release: 2.6.5-7.282-smp_perfctr OS Build/Version: #5 SMP Wed Nov 8 14:13:10 GMT 2006 OS Machine: x86_64 Processors: 2 Total Memory (MB): 3959.38 System Page Size (KB): 4.00 Processor Information - Vendor: AMD Processor family: K8 Brand: AMD Opteron(tm) Processor 250 Model: Opteron () Revision: 10 Clock Speed: 997.06 MHz Cache and TLB Information - Cache levels: 2 Caches/TLBs: 7 Cache Details - Level 1: Type: Data Size: 64 KB Line size: 64 bytes Associativity: 2-way set associative Type: Instruction Size: 64 KB Line size: 64 bytes Associativity: 2-way set associative Level 2: Type: Unified Size: 1.00 MB Line size: 64 bytes Associativity: 16-way set associative TLB Details - Level 1: Type: Data Entries: 32 Pagesize (KB): 4 Associativity: Fully associative Type: Instruction Entries: 32 Pagesize (KB): 4 Associativity: Fully associative Level 2: Type: Instruction Entries: 512 Pagesize (KB): 4 Associativity: 4-way set associative Type: Data Entries: 512 Pagesize (KB): 4 Associativity: 4-way set associative PAPI Version Information - Major version: 3 Minor version: 2 Revision: 1 PAPI Standard Event Information - Standard events: 42 Non-derived events: 29 Derived events: 13 PAPI Standard Event Details - Non-derived: PAPI_BR_INS: Branch instructions PAPI_BR_MSP: Conditional branch instructions mispredicted PAPI_BR_TKN: Conditional branch instructions taken PAPI_FAD_INS: Floating point add instructions PAPI_FML_INS: Floating point multiply instructions PAPI_FPU_IDL: Cycles floating point units are idle PAPI_FP_INS: Floating point instructions PAPI_FP_OPS: Floating point operations PAPI_HW_INT: Hardware interrupts PAPI_L1_DCA: Level 1 data cache accesses PAPI_L1_ICA: Level 1 instruction cache accesses PAPI_L1_ICR: Level 1 instruction cache reads PAPI_L1_LDM: Level 1 load misses PAPI_L1_STM: Level 1 store misses PAPI_L2_DCH: Level 2 data cache hits PAPI_L2_DCM: Level 2 data cache misses PAPI_L2_DCR: Level 2 data cache reads PAPI_L2_DCW: Level 2 data cache writes PAPI_L2_ICH: Level 2 instruction cache hits PAPI_L2_ICM: Level 2 instruction cache misses PAPI_L2_LDM: Level 2 load misses PAPI_L2_STM: Level 2 store misses PAPI_RES_STL: Cycles stalled on any resource PAPI_STL_ICY: Cycles with no instruction issue PAPI_TLB_DM: Data translation lookaside buffer misses PAPI_TLB_IM: Instruction translation lookaside buffer misses PAPI_TOT_CYC: Total cycles PAPI_TOT_INS: Instructions completed PAPI_VEC_INS: Vector/SIMD instructions Derived: PAPI_L1_DCH: Level 1 data cache hits PAPI_L1_DCM: Level 1 data cache misses PAPI_L1_ICH: Level 1 instruction cache hits PAPI_L1_ICM: Level 1 instruction cache misses PAPI_L1_TCA: Level 1 total cache accesses PAPI_L1_TCH: Level 1 total cache hits PAPI_L1_TCM: Level 1 cache misses PAPI_L2_DCA: Level 2 data cache accesses PAPI_L2_ICA: Level 2 instruction cache accesses PAPI_L2_TCA: Level 2 total cache accesses PAPI_L2_TCH: Level 2 total cache hits PAPI_L2_TCM: Level 2 cache misses PAPI_TLB_TL: Total translation lookaside buffer misses -------------- next part -------------- A non-text attachment was scrubbed... Name: papi3_k8.xml Type: application/xml Size: 2769 bytes Desc: not available Url : http://sourceforge.net/mailarchive/forum.php?forum=perfsuite-users/attachments/20061120/cc5c39d8/attachment.rdf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://sourceforge.net/mailarchive/forum.php?forum=perfsuite-users/attachments/20061120/cc5c39d8/attachment.bin ------------------------------ Message: 2 Date: Mon, 20 Nov 2006 13:11:44 +0000 From: Niall Moran Subject: Re: [PerfSuite-users] psrun and 2.6 kernel To: Rick Kufrin Cc: per...@li... Message-ID: <200...@ic...> Content-Type: text/plain; charset="us-ascii" > > >I have just built and installed perfsuite 0.6.2 alpha5. I built it with > > >papi support and built it against papi 3.2.1. I am running on an amd > > >opteron with a perfctr patched SLES 2.6.5-7 kernel. Once built all the > > >perfsuite tests completed correctly. However when I try to run psrun I > > >get the following error: > > > > > > libpsrun fatal error: error reported by performance software layer > > > > > >I found on an earlier thread that this error was a > > >result of using a 2.6 kernel when there was no support for it. However > > >version 0.6.2 alpha 5 lists the 2.6 kernel. Any help or suggestions > > >would be much appreciated. > > > > > > > You're correct, the 2.6 kernel is now supported. My guess about what's > > happening is that the events being selected by default are including > > one that isn't available in PAPI 3.2.1. For your installation, the > > defaults should be in the file: > > > > $PREFIX/share/perfsuite/xml/pshwpc/papi3_k8.xml > > > > I would suggest running "psinv -p" to verify which PAPI events are > > available on your system and compare those with the events listed in > > the above file. If there is one that does not match, just comment it out > > in the file and try again. If that fixes the problem, then please let me > > know and I'll make the appropriate change in the distribution for the next > > release. If it doesn't then advise of that as well and we can look a > > little closer to try and get you up and running. > > > Thanks for getting back to me. I have checked the list of supported > events from psinv -p against the events listed in the papi3_k8.xml configuration file > and all the events in the config file are supported. I also ran psrun -i > to ensure that it is using the papi3_k8.xml config file. Attached is the > output of psinv -p and also the the config file papi3_k8.xml. I removed all events from the papi3_k8.xml config file and started adding them back in one by one. Everything works fine with all be events except for PAPI_L1_TCM and PAPI_L2_TCA even though both these events appear in the psinv -p output. Niall. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://sourceforge.net/mailarchive/forum.php?forum=perfsuite-users/attachments/20061120/72d5e98c/attachment.bin ------------------------------ Message: 3 Date: Mon, 20 Nov 2006 07:39:03 -0600 (CST) From: Rick Kufrin Subject: Re: [PerfSuite-users] psrun and 2.6 kernel To: Niall Moran Cc: per...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Niall, >> Thanks for getting back to me. I have checked the list of supported >> events from psinv -p against the events listed in the papi3_k8.xml configuration file >> and all the events in the config file are supported. I also ran psrun -i >> to ensure that it is using the papi3_k8.xml config file. Attached is the >> output of psinv -p and also the the config file papi3_k8.xml. > > I removed all events from the papi3_k8.xml config file and started > adding them back in one by one. Everything works fine with all be > events except for PAPI_L1_TCM and PAPI_L2_TCA even though both these > events appear in the psinv -p output. Sounds like some good detective work on your end, thanks for checking into things and reporting. Now, as to why this is going on I have to admit being stumped at the moment. This would seem at first glance to be something going wrong in either the PAPI or perfctr layers. Within the PAPI 3.2.1 distribution there is a utility called "papi_avail" that can print out information about mappings of PAPI events to the native counters that may provide a clue. It's invoked as "papi_avail -e EVENTNAME" where EVENTNAME is the name of the PAPI event one wants more information about. You might try that utility with the events above and see what the output is to get started. Unfortunately, I do not have access to an Opteron with the kernel support required to test this out, but if this limitation is a problem for you we can try to look further into it. Rick p.s. for detailed debugging information, PerfSuite's configure script supports an option --enable-debug and the software recognizes an environment variable PS_DEBUG which if set to 3 or higher will dump a lot of information about what's going on underneath to help locate sources of errors. ------------------------------ Message: 4 Date: Mon, 20 Nov 2006 15:11:50 +0000 From: Niall Moran Subject: Re: [PerfSuite-users] psrun and 2.6 kernel To: Rick Kufrin Cc: per...@li... Message-ID: <200...@ic...> Content-Type: text/plain; charset="us-ascii" > >I removed all events from the papi3_k8.xml config file and started > >adding them back in one by one. Everything works fine with all be > >events except for PAPI_L1_TCM and PAPI_L2_TCA even though both these > >events appear in the psinv -p output. > > Sounds like some good detective work on your end, thanks for checking into > things and reporting. Now, as to why this is going on I have to admit > being stumped at the moment. This would seem at first glance to be > something going wrong in either the PAPI or perfctr layers. Within the > PAPI 3.2.1 distribution there is a utility called "papi_avail" that can > print out information about mappings of PAPI events to the native counters > that may provide a clue. It's invoked as "papi_avail -e EVENTNAME" where > EVENTNAME is the name of the PAPI event one wants more information about. > You might try that utility with the events above and see what the output > is to get started. Unfortunately, I do not have access to an Opteron with > the kernel support required to test this out, but if this limitation is a > problem for you we can try to look further into it. > > p.s. for detailed debugging information, PerfSuite's configure script > supports an option --enable-debug and the software recognizes an > environment variable PS_DEBUG which if set to 3 or higher will dump a lot > of information about what's going on underneath to help locate sources of > errors. Running papi_avail for both these events works fine and says that they pass. I then tried adding both these events and these alone to the config file and it worked fine. It appears that there are conflicts between these events and some of the others. I ran into a similar problem using papi with itc on an itanium2. I will recompile perfsuite with the debugging enabled and will experiment with different configs to try to get an idea of which events are conflicting with which. Niall. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://sourceforge.net/mailarchive/forum.php?forum=perfsuite-users/attachments/20061120/770800ff/attachment.bin ------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------ _______________________________________________ PerfSuite-users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perfsuite-users End of PerfSuite-users Digest, Vol 4, Issue 5 ********************************************* __________________________________________________ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com |