HP Caliper Advisor Rule Writer Guide

Figure 1-2 HP Caliper Advisor Report
===========================================================================
HP Caliper 4.2.0 Advisor Report for my_app
===========================================================================
Analysis Focus
Executable: /tmp/my_app
Last modified: August 15, 2004 at 03:10 PM
Processor type: Itanium2 9M
Processor speed: 1599 MHz
OS version: HP-UX 11.23
Performance Databases
/home/me/.hp_caliper_databases/cpu - January 24, 2007 at 11:17 AM
/home/me/.hp_caliper_databases/fprof - January 24, 2007 at 07:52 PM
Rule Files
default - Default Caliper Advisor rules
@ /opt/caliper/rules
---------------------------------------------------------------------------
Index Class Analysis
---------------------------------------------------------------------------
23.9 cpu Function profile [cpu_fprof_1]
The following functions account for 23.9% of the CPU cycles
used by the application. Improving the algorithm(s) used in
these routines and/or increasing the compiler optimization
level can improve performance.
11.9% compare_items
8.2% search_dbase
3.8% new_item_insert
Use the following Caliper command to get a source listing of
the 'hot spots' in these routines:
caliper report fprof
---------------------------------------------------------------------------
16.6 memory ITLB misses [mem_itlb_general]
The percentage of ITLB misses (16.6%) is higher than normal.
This may indicate a poor setting for the virtual memory
instruction page size.
Try adding "+pi 4M" to the application's link command.
---------------------------------------------------------------------------
[Minimum index: 5.0, minimum count: 5, maximum count: 15]
---------------------------------------------------------------------------
What Are Analysis Rules?
The key to the Advisor is the set of analysis rules used.
Each analysis rule is focused on a specific performance problem. A rule accesses any
data that might have been collected on this problem, assesses whether the problem
might exist in the application, and if so, prints appropriate advice to the user. Most
rules will not apply to a particular application program, but some will. The more rules
available, covering more potential performance problem areas, the better are the chances
of providing useful tuning advice for an application.
16 Overview: HP Caliper Advisor and Analysis Rules