HP Process Resource Manager User's Guide

PRM configuration planning
Using prmanalyze to quickly identify resource use
Chapter 3 81
Using prmanalyze to quickly identify resource
use
The prmanalyze utility scans accounting files for information on the
desired resource type (disk, memory, or CPU) and orders the accounting
records by the requested sort key (user, UNIX group, command name, or
PRMID).
This section focuses on the prmanalyze functionality that is relevant to
quickly identifying resource use. Command options are used, but not
described, in this section. For information on the command, see the
section “prmanalyze” on page 203.
NOTE The following examples are for illustrative purposes only. They are not
from an actual machine.
Step 1. Collect UNIX accounting data in a file (/var/adm/pacct by default) using
accton filename if you do not already have any accounting files. Ideally,
collect the accounting data over a period of one to seven days before
using prmanalyze.
Step 2. Use prmanalyze to create a summary CPU report, sorted by command
and piped to a reverse sort on the “% total” column:
# prmanalyze -s command -r cpu -p -t summary -1 filename | sort -r +5
summary CPU report by command name : 57203 records processed
unique id processes ave secs peak secs total secs % total
mrkt_rsch 777 47198.00 13008184.00 2468339.00 34.03
financials 235 106583.00 24826696.00 1407889.00 19.41
web_browser 1359 12565.00 364533.00 1174329.00 16.19
sales_fcst 679 91231.00 788441.00 009676.00 13.92
f90com32 843 7573.00 104998.00 303193.00 4.18
vi 1743 1511.00 19840.00 125484.00 1.73
emacs 12 199219.00 639010.00 113879.00 1.57
The biggest CPU consumer is mrkt_rsch, a market research program.
Because this program helps determine priorities in product development,
it should be placed in a PRM group of its own. The second biggest
consumer is financials. This is another critical program. It must run to