Home

sacct

sacct is a command-line utility in the Slurm Workload Manager designed to report accounting information for jobs and job steps. It queries Slurm's accounting database, typically maintained by the slurmdbd daemon, to provide historical data for completed work units. This makes sacct useful for auditing, performance analysis, and usage reporting.

The accounting data includes records for users, accounts, associations, partitions, and the resources consumed by each

Output is highly configurable. Users can filter by time range (-S start, -E end), by job ID

Relationship to other Slurm tools: sacct is the main reporting tool for accounting data and works alongside

job
and
its
steps.
sacct
can
return
per-job
details
such
as
JobID,
JobName,
User,
Partition,
AllocCPUS,
TotalCPU,
Elapsed,
State,
ExitCode,
and
memory
usage
metrics,
as
well
as
per-step
data
where
available.
(-j),
or
by
account
or
user,
and
select
which
fields
to
display
with
the
--format
option.
Common
flags
include
-P
for
parsable
output
and
-n
to
omit
headers.
Examples
are
sacct
-j
12345
--format=JobID,JobName,User,State,Elapsed,ExitCode
and
sacct
-S
2024-01-01
-E
2024-01-31
-u
alice
--format=JobID,JobName,Partition,AllocCPUS,TotalCPU,Elapsed,State.
sacctmgr
(account
management)
and
sreport
(summaries).
Access
to
data
depends
on
permissions
and
the
Slurm
configuration;
typically
users
can
see
their
own
job
records,
while
administrators
can
view
broader
accounting
information.
sacct
requires
that
accounting
is
enabled
and
that
the
slurmdbd
service
is
available
and
reachable.