Installation guide

The /var/adm/pacct file will grow in size. The ckpacct command checks
the size of the /var/adm/pacct file and creates a /var/adm/pacct
n
file
if the pacct file is larger than a specified size.
The /var/adm/pacct database file includes the following process
information:
• Process type (for example, child process)
• Exit status indicating how the process terminated
• User identification number
• Group identification number
• Terminal from which the process originated
• Start, user, system, and CPU time
• Amount of memory used
• Number of I/O characters transferred
• Number of 1024-byte blocks read or written
• Name of the command used to start the process
The record format for the process accounting files is tacct format and is
established by the acct header file structure. The acct header file
structure is defined in the /usr/include/sys/acct.h header file and
includes up to 18 columns of accounting information. The tacct structure
members are defined in the private tacct.h header file.
Table 12–7 specifies the column number, heading, and description for files
with the tacct format.
Table 12–7: The tacct File Format
Column Heading Description
1 UID Specifies the user identification number, which is
obtained from the /etc/passwd file.
2 LOGNAME Specifies the user login name, which is obtained
from the /etc/passwd file.
3 PRI_CPU Specifies the prime time CPU run time, which is
the total time (in seconds) that prime time CPU
run time was charged to the user.
4 NPRI_CPU Specifies the nonprime time CPU run time, which
is the total time (in seconds) that nonprime time
CPU run time was charged to the user.
5 PRI_MEM Specifies the prime time memory kcore minutes,
which is the total CPU time (in minutes)
multiplied by the mean size of the memory used.
Administering the System Accounting Services 12–21