Skip to content

Job Accounting

Use sacct to review your jobs from today, including completed work:

sacct -u "$USER" -S today --format=JobID,JobName,Partition,AllocCPUS,State,ExitCode

Illustrative output (not a live ICARUS report):

JobID       JobName  Partition AllocCPUS State      ExitCode
12344       cpu-test gh200     16        COMPLETED  0:0
12344.batch batch              16        COMPLETED  0:0
12345       gpu-test gh200     72        CANCELLED  0:15

ExitCode records exit status and terminating signal; 0:0 indicates successful termination. Job steps have separate records. Use sacct --helpformat to list available fields.

CPU-Hours and Project Usage

Run these commands on a login node. Replace YOUR_SLURM_ACCOUNT with your project's SLURM account and change the dates to your reporting period.

Your Jobs

sacct -X -P -u "$USER" -A YOUR_SLURM_ACCOUNT \
  -S 2026-09-01 -E 2026-10-01 \
  --format=JobID,Account,AllocCPUS,Elapsed,CPUTimeRAW,State

Illustrative output (not a live ICARUS report):

JobID|Account|AllocCPUS|Elapsed|CPUTimeRAW|State
12344|project_example|16|01:00:00|57600|COMPLETED
12345|project_example|72|00:30:00|129600|COMPLETED

-X shows allocations without separate job-step rows. CPUTimeRAW is allocated CPUs multiplied by elapsed seconds: divide by 3,600 for CPU core-hours. These examples represent 16 and 36 core-hours, respectively, rather than measured CPU utilization.

The dates select job records; a job overlapping the period may include runtime outside it. Use the period report below for account usage. See the official sacct reference.

Project Usage by User

sreport -n -P -t Hours cluster AccountUtilizationByUser \
  Accounts=YOUR_SLURM_ACCOUNT Start=2026-09-01 End=2026-10-01 \
  Format=Account,Login,Used

Illustrative output, with columns Account | Login | CPU-hours:

project_example||100
project_example|user_a|52
project_example|user_b|48

The blank-login row is the account total; the following rows break it down by user. Do not add the total to the user rows. -t Hours selects hours; CPU is the default resource. Reports depend on Slurm's accounting database and background usage summaries, so recent jobs may not appear immediately. See the official sreport reference.

These commands use documented Slurm syntax but have not been tested against ICARUS here. Available records depend on accounting configuration and permissions. Use the dashboard usage report for the allocation balance and GPU-equivalent charges; CPU-hours alone do not establish the final charge.

Inspect Running Job Steps

sstat --allsteps -j 12345 --format=JobID,AveCPU,AveRSS,MaxRSS

Use your own running job ID. AveCPU reports average task CPU time; AveRSS and MaxRSS summarize task memory, not total node memory. Metrics depend on the accounting plugin and may be absent or delayed. If needed, inspect a specific step such as 12345.batch. See the sstat reference.

Usage Reports: CPU, Memory, and GPU Metrics

For a finished job, inspect recorded resource metrics with:

sacct -j 12345 --format=JobID,TRESUsageInAve%110

For all running steps of your job, use:

sstat --allsteps -j 12345 --format=JobID,TRESUsageInAve%110

Replace 12345 with your job ID. %110 sets the display width of the metrics column. Expand the reporting period with sacct -S YYYY-MM-DD when needed.

Illustrative output only, assuming GPU accounting is enabled:

JobID       TRESUsageInAve
12345.0     cpu=00:05:26,gres/gpumem=40960M,gres/gpuutil=87,mem=6291456K
Metric Interpretation
cpu Average task CPU time
mem Average task resident host memory; use the displayed unit
gres/gpumem GPU memory accounting metric, when collected; use the displayed unit
gres/gpuutil GPU utilization high-water mark averaged across tasks, when collected; not a time-averaged efficiency score

GPU metrics depend on the accounting configuration and are not yet confirmed for ICARUS. Slurm reports GPU memory and utilization high-water marks across tasks, not time-averaged efficiency or a core-hour bill. Missing fields do not prove zero usage. See GPU accounting. Accounting retention is not yet established.