Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

sstat

This command allows a user to easily pull up status information about their jobs: CPU usage, task information, node information, resident set size (RSS), and virtual memory (VM).

...

Variable

Description

account

Account the job ran under.

allocTRES

Allocated trackable resources (e.g. cores/RAM)

avecpu

Average CPU time of all tasks in job.

cputime

Formatted (Elapsed time * core) count used

elapsed

Jobs elapsed time formatted as DD-HH:MM:SS.

state

The job’s state

jobid

The id of the job.

jobname

The name of the job.

maxdiskread

Maximum number of bytes read

maxdiskwrite

Maximum number of bytes written

maxrss

Maximum RAM use of all job tasks

ncpus

The number of allocated CPUs

nnodes

The number of allocated nodes

ntasks

Number of tasks in a job

priority

Slurm priority

qos

Quality of service

user

Username of the person who ran the job

Examples for better understanding job hardware utilization

Note that by default, only jobs run on the current day will be listed. To search within a different period of time, use the --starttime flag. The --long flag can also be used to show a non-abbreviated version of sacct output. For example, to list detailed job characteristics for a user’s jobs since December 15th, 2020:

...

Note

If a + is listed at the end of a field, then that field has likely been truncated to fit into a fixed number of characters. Consider increasing the with by appending a % followed by a number to specify a new width. For example allocTRES%42 overrides the default width to 42 characters.

mysacct

For convenience, the command mysacct has been added to the system. This is equivalent to sacct --user=$USER --format=jobid,avecpu,maxrss,cputime,allocTRES%42,state and accepts the same flags that sacct would, e.g. --starttime=YYYY-MM-DD or --endtime=YYYY-MM-DD.

References:
https://curc.readthedocs.io/en/latest/running-jobs/slurm-commands.html#learning-status-information-with-sstat

...