HP XC System Software Administration Guide Version 3.0
• 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.
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).
Note
The bacct command reports a slightly increased value for a job's runtime when compared to the value
reported by the sacct command. LSF-HPC sums the resource usage values reported by itself and SLURM.
Disabling Job Accounting
Job accounting is turned on by default. Note that job accounting is required if you are using LSF. Follow this
procedure to turn off job accounting:
1. Log in as the superuser on the SLURM server (see “Configuring SLURM Servers” (page 103)).
2. Use the text editor of your choice to edit the /hptc_cluster/slurm/etc/slurm.conf file as
follows:
a. Locate the parameter JobAcctType.
JobAcctType=jobacct/log
b. Set the value of JobAcctType to disable job accounting as follows:
JobAcctType=jobacct/none
110 Managing SLURM