Installation guide

38 5.89% 0.33re 0.10% 0.00cpu 0.00% 163357avio 0k cp
2 0.31% 0.01re 0.00% 0.00cpu 0.00% 132992avio 0k cat
26 4.03% 0.11re 0.03% 0.00cpu 0.00% 136832avio 0k chmod
24 3.72% 0.10re 0.03% 0.00cpu 0.00% 139824avio 0k chgrp
1 2 3
The additional columns show the following information:
1 Indicates the number of times each command was executed with
respect to the total number of times all commands were executed.
2 Indicates the amount of real time needed to execute the command the
number of times specified in column one with respect to the total real
time required to execute all the commands.
3 Indicates the amount of CPU time needed to execute the command the
number of times specified in column 1 with respect to the total CPU
time required to execute all commands.
12.5.6 The acctcms Command
The acctcms command produces ASCII and binary total command
summary files from process accounting records. You specify process
accounting files that have the /usr/include/sys/acct.h header file
structure, such as the /var/adm/pacct file. The acctcms command sorts
the records and combines the statistics for each command used during the
accounting period into a single record. The records allow you to identify the
commands used most and the commands that use the most system time.
The runacct shell script invokes the acctcms command during its CMS
state. You can also invoke this command manually to create a command
summary report.
The acctcms command has the following syntax:
/usr/sbin/acct/acctcms
[-acjnopst] filename...
If you invoke the acctcms command with no options, the command sorts
the output in descending order according to total kcore minutes, which is
the number of kilobytes of memory used by the process multiplied by the
buffer time used. Binary output is the default. Use the following calculation
to obtain the kcore minutes:
kcoremin=[(CPU time in seconds)*(mean memory size in kbyte)]/60
Refer to the acctcms(8) reference page for information on the command
options.
_______________________ Note _______________________
If you use the acctcms command to produce a total summary
file in ASCII format, each command record will consist of more
Administering the System Accounting Services 12–27