HP XC System Software Administration Guide Version 3.2

SLURM job accounting attempts to gather all the statistics available on the systems on which it
is run. The following statistics are valid for HP XC systems:
User processor time
System processor time
Maximum number of minor page faults (page reclaims) for any process
Maximum number of major page faults for any process
Total number of processes used
Total number of processors allocated to the job
Job's elapsed time
Job status or state (running, completed, failed, timed out, or node fail)
First nonzero error code returned by jobstep
Sum of system processor time and user processor time
Note:
These statistics are gathered after each jobstep completes.
15.4.1 Using the sacct Command
The sacct command enables you to analyze the system accounting data collected in the job
accounting log file.
As the superuser, you can examine the accounting data for all jobs and job steps recorded in the
job accounting log. The --uid and --gid options enable you to filter the output to report only
the jobs and jobsteps from a specific user ID or group ID, respectively.
The default invocation of the sacct command provides the jobstep, the job name, the name of
partition that the job was run on, the number of processes run, their status, and the return value
for the processes. Following is an example:
# sacct
Jobstep Jobname Partition Nprocs Status Error
---------- ---------- ---------- ------- ---------- -----
2 script23 partn1 2 COMPLETED 0
2.0 partn1 2 COMPLETED 0
3 script51 partn1 2 COMPLETED 0
3.0 partn1 2 COMPLETED 0
The sacct command also provides a variety of options that enable you to tailor the output
according to your needs. These options include the following:
--brief
Displays only the jobstep, status, and error (return value) fields.
--long
Displays a lengthier list, including the jobstep, the processor time in user space,
the processor time in system space, the number of processes used, the total
number of processors allocated to the job, the elapsed time, status, and error
fields.
--jobs
Displays only the information on a specified job or list of jobs.
--state
Displays only the information on jobs that are in a given state (running,
completed, and so on).
--total
Displays only the cumulative statistics for each job.
--file=file
Examines the job accounting data from the specified file instead of the job
accounting log.
--fields
Displays only the specified statistics.
For more information, see sacct(1).
15.4 Job Accounting 179