Skip to main content

bacct

Overview

bacct is used to display accounting statistics for completed jobs.

Options

OptionDescriptionKey Differences
-hPrint command usage and exitProvides more detailed help information
-VPrint versionNo difference
-lDisplay detailed job information in long formatNo difference
-bDisplay job information in brief formatNo difference
-dDisplay only successfully completed (DONE) jobsNo difference
-eDisplay only exited (EXIT) jobsNo difference
-uDisplay jobs for a specified user or all usersNo difference
-qDisplay jobs submitted to a specified queueNo difference
-mDisplay jobs executed on a specified hostNo difference
-PDisplay jobs belonging to a specified projectproject maps to wckey
-CDisplay jobs completed within a specified time intervalNo difference
-SDisplay jobs submitted within a specified time intervalNo difference
-DDisplay jobs dispatched within a specified time intervalNo difference

Output Format

SUMMARY format (default)

Displays aggregated job statistics, including:

FieldDescription
Total number of done jobsTotal number of successfully completed jobs
Total number of exited jobsTotal number of failed/exited jobs
Total CPU time consumedTotal CPU time consumed by all jobs
Average CPU time consumedAverage CPU time
Maximum/Minimum CPU time of a jobMax/min CPU time for a single job
Total wait time in queuesTotal wait time in queues
Average/Maximum/Minimum wait time in queueAverage/max/min wait time
Average/Maximum/Minimum turnaround timeAverage/max/min turnaround time (submission to completion)
Average/Maximum/Minimum hog factorAverage/max/min CPU utilization (CPU time/turnaround time)
Average/Maximum/Minimum expansion factorAverage/max/min expansion factor (turnaround time/run time)
Total/Average/Maximum/Minimum Run timeTotal/average/max/min run time
Total throughputTotal throughput (jobs/hour)
Beginning/Ending timeStart/end time of the time range

BRIEF format (-b option)

Brief output includes the following fields:

FieldDescriptionKey Differences
U/UIDUsernameNo difference
QUEUEQueue nameNo difference
SUBMIT_TIMESubmission timeNo difference
CPU_TCPU timeNo difference
WAITWait timeNo difference
TURNAROUNDTurnaround timeNo difference
FROMSubmission hostAlways shown as N/A
EXEC_ONExecution hostNo difference
JOB_NAMEJob nameNo difference

LONG format (-l option)

Long format outputs full details for each job, including job ID, user, queue, submission time, start time, completion time, CPU time, wait time, turnaround time, execution host, job name, exit status, and more.

Examples

  1. Show statistics for all completed jobs (default SUMMARY format)

    bacct
  2. Show job statistics for a specific user

    bacct -u username
  3. Show all jobs in brief format

    bacct -b
  4. Show detailed job information in long format

    bacct -l
  5. Show only successfully completed jobs

    bacct -d
  6. Show only failed/exited jobs

    bacct -e
  7. Show job statistics for a specific queue

    bacct -q queuename
  8. Show jobs executed on a specific host

    bacct -m hostname
  9. Show jobs for a specific project

    bacct -P project_name
  10. Query jobs by time range

    # Query jobs completed between December 1, 2025 and January 31, 2026
    bacct -C 2025/12/1,2026/1/31

    # Query jobs completed on May 6
    bacct -C 5/6

    # Query jobs submitted in the last 3 days
    bacct -S .-3,

Time Format

FormatMeaningExample
MM/DDMonth/day5/1 means all day on May 1
MM/DD,MM/DDTime range5/1,5/8 means May 1 to May 8
YYYY/MM/DDFull date2024/12/1
.-N,Relative time.-7, means the last 7 days

Notes

  • SUMMARY format is shown by default
  • -b and -l are mutually exclusive; only one can be used
  • If no time option is specified, the default query is jobs completed in the last 7 days