12.07.2015 Views

Commonly Used Metrics for Performance Analysis - Power.org

Commonly Used Metrics for Performance Analysis - Power.org

Commonly Used Metrics for Performance Analysis - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Metrics</strong> <strong>for</strong> Per<strong>for</strong>mance <strong>Analysis</strong>Utilization rate : 99.706 %MIPS : 1260.056 MIPSInstructions per cycle : 0.395Instrumented section: 3 - Label: VMXopt - process: 1file: test_mul_nn_hpm.c, lines: 197 202Count: 1Wall Clock Time: 1.28022 secondsTotal time in user mode: 1.2764352996875 seconds4.3 Profiling Hardware Events with tprofThe -E flag enables event-based profiling. The -E flag is one of the four software-based events (EMULATION,ALIGNMENT, ISLBMISS, DSLBMISS) or a Per<strong>for</strong>mance Monitor event (PM_*). By default, the profiling eventis processor cycles. All Per<strong>for</strong>mance Monitor events are prefixed with PM_, such as PM_CYC <strong>for</strong> processorcycles or PM_INST_CMPL <strong>for</strong> instructions completed. The commandpmlist –g -1lists all Per<strong>for</strong>mance Monitor events that are supported on the POWER7 processor. The events that make upthe CPI stack are discussed in 6.From the AIX 6 tprof command documentation:-E [mode]Enables event-based profiling. The possible modes are:PM_eventSpecifies the hardware event to profile. If no mode is specified <strong>for</strong> the -E flag, the default event isprocessor cycles (PM_CYC).EMULATIONEnables the emulation profiling mode.ALIGNMENTEnables the alignment profiling mode.ISLBMISSEnables the Instruction Segment Lookaside Buffer miss profiling mode.DSLBMISSEnables the Data Segment Lookaside Buffer miss profiling mode.For example,tprof -m bin/$exe -Zusk -r $exe –E PM_LD_MISS_L1 –x myprogprofiles the number of L1 D-cache misses across the source codeCopyright ©2011 IBM Corporation Page 15 of 52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!