beautypg.com

5 using hpcpi labels, 6 using hpcpi on an hp xc cluster – HP XC System 3.x Software User Manual

Page 5

background image

Displaying Raw Values....................................................................................................................53
Limiting the hpcpiprof Output....................................................................................................54
Additional Options..........................................................................................................................54

Tips and Best Practices for Using HPCPI.............................................................................................55

Tips..................................................................................................................................................55

Using Event Sets.........................................................................................................................55
Stopping the Daemon After You Finish Collecting Data (hpcpictl quit)...........................55
Limiting the Event Count Display (hpcpiprof -keep Option)............................................56
Using Database Directories, Epochs, or Labels to Organize Your Data....................................56

Database Directories.............................................................................................................56
Epochs...................................................................................................................................56
Labels....................................................................................................................................56

Event Intervals.................................................................................................................................56
Multiple Duty Groups.....................................................................................................................56
Itanium Instruction Metrics.............................................................................................................57
Measuring Memory Controller and HyperTransport Events.........................................................57

HyperTransport Transmit and Receive Events..........................................................................57

5 Using HPCPI Labels......................................................................................................59

Overview...............................................................................................................................................59
Simple HPCPI Session Using Labels....................................................................................................60

Step 1: Setting Up the Environment and Starting the Daemon.......................................................60
Step 2: Establishing the Label and Running the Application..........................................................60
Step 3: Flushing the Data.................................................................................................................60
Step 4: Using the Label with hpcpiprof.......................................................................................60
Step 5: Stopping the HPCPI Daemon..............................................................................................61

Label Selectors.......................................................................................................................................62

Selector Operators...........................................................................................................................62

-not

Operator............................................................................................................................63

-and

Operator............................................................................................................................63

-or

Operator..............................................................................................................................63

-equiv

Operator.......................................................................................................................63

Operator Syntax.........................................................................................................................63

Multiple Labels.....................................................................................................................................64
Reusing Labels......................................................................................................................................64
Comparing Epochs and Labels.............................................................................................................64

Using Epochs with Labels...............................................................................................................64

Label Examples.....................................................................................................................................65

Existing Processes: -pid pid........................................................................................................65
Using Labels with Application Arguments.....................................................................................65

Using the Application Argument in the Label Name................................................................65

Utilities that Spawn Processes: -pgid this.................................................................................65

Spawned Processes without the Originator: -pgid this -pid this -not......................65

All Processes: -pid -1 -not........................................................................................................65
Kernel Idle Data: -pid 0................................................................................................................66

Kernel Idle Data Per CPU...........................................................................................................66

Creating Labels in Programs................................................................................................................67

C Code Example..............................................................................................................................67

Notes...........................................................................................................................................68

Fortran Code Example.....................................................................................................................68

6 Using HPCPI on an HP XC Cluster.............................................................................69

Overview...............................................................................................................................................69

Table of Contents

5