HP-UX HB v13.00 Ch-19 - PRM

HP-UX Handbook – Rev 13.00 Page 13 (of 31)
Chapter 19 Process Resource Manager (PRM)
October 29, 2013
groups. Basically there are two different approaches:
1) Analytic Approach
The command prmanalyze(1) reads standard HP-UX accounting information and allows an
estimate of the resource consumption per process. Therefore process accounting needs to be
running for some time to deliver statistically valuable information.
$ /usr/sbin/acct/accton /var/adm/pact switches accounting on
Check if the file /var/adm/pacct grows over time.
$ /usr/sbin/acct/accton switches accounting off again
$ prmanalyze -1 -p
summary CPU report by command name : 10736 records processed
unique id processes ave secs peak secs total secs % total
agdbserv 2 98.38 196.01 196.75 1.94
alarmgen 2 378.17 754.16 756.34 7.45
cmcld 2 1453.49 2896.64 2906.98 28.64
dced 2 107.14 213.76 214.27 2.11
mib2agt 2 149.62 298.00 299.24 2.95
midaemon 2 779.75 1554.00 1559.49 15.36
netfmt 2 65.00 129.63 130.01 1.28
opcmona 2 107.27 213.86 214.54 2.11
rep_serv 2 135.79 270.56 271.59 2.68
scopeux 2 243.03 484.40 486.07 4.79
scrdaemo 2 83.74 167.18 167.48 1.65
snmpdm 2 136.94 272.71 273.87 2.70
The -1 option filters out all processes that have used less than 1% CPU time.
The -p option includes all processes that are currently running.
$ prmanalyze -1 -p -r mem
summary memory report by command name : 10301 records processed
unique id processes ave KB peak KB KB minutes % total
automoun 2 156.79 158.76 17712288741.64 1.59
biod 32 7.90 9.26 14272290774.21 1.28
cmclconf 9 73.61 115.67 21106092748.33 1.89
cmcld 2 625.02 2119.00 89601638011.65 8.04
cmlvmd 2 242.69 357.00 34790978934.67 3.12
cmsnmpd 2 103.80 117.46 14886363987.98 1.34
dced 2 366.15 382.66 52508918875.98 4.71
disp+wor 8 3603.40 5910.00 85128425600.00 7.64
dmisp 2 155.43 407.00 22289890807.85 2.00
hpuxci 2 266.43 275.70 38207763568.95 3.43
mib2agt 2 102.05 103.89 14634840165.09 1.31
mibmond 2 150.38 169.37 21558326270.47 1.93
midaemon 2 614.04 778.00 88056096650.69 7.90
nfsd 21 122.47 214.00 60223461496.00 5.40
opcctla 2 405.29 506.00 58101720266.34 5.21
opcmsgi 2 110.04 138.67 15775275584.00 1.41