DOKK / manpages / debian 11 / slurm-client / sstat.1.en
sstat(1) Slurm Commands sstat(1)

sstat - Display various status information of a running job/step.

sstat [OPTIONS...]

Status information for running jobs invoked with Slurm.

The sstat command displays job status information for your analysis. The sstat command displays information pertaining to CPU, Task, Node, Resident Set Size (RSS) and Virtual Memory (VM). You can tailor the output with the use of the --fields= option to specify the fields to be shown.

For the root user, the sstat command displays job status data for any job running on the system.

For the non-root user, the sstat output is limited to the user's jobs.

NOTE: The sstat command requires that the jobacct_gather plugin be installed and operational.

NOTE: The sstat command is not supported on Cray ALPS.

Print all steps for the given job(s) when no step is specified.

Print a list of fields that can be specified with the '--format' option.

Displays a general help message.

Predefined format to list the pids running for each job step. (JobId,Nodes,Pids)

Format is <job(.step)>. Stat this job step or comma-separated list of job steps. This option is required. The step portion will default to the lowest numbered (not batch, extern, etc) step running if not specified, unless the --allsteps flag is set where not specifying a step will result in all running steps to be displayed. NOTE: A step id of 'batch' will display the information about the batch step. NOTE: A step id of 'extern' will display the information about the extern step. This step is only available when using PrologFlags=contain

No heading will be added to the output. The default action is to display a header.

Don't convert units from their original type (e.g. 2048M won't be converted to 2G).

Comma separated list of fields. (use '--helpformat' for a list of available fields).

NOTE: When using the format option for listing various fields you can put a %NUMBER afterwards to specify how many characters should be printed.

i.e. format=name%30 will print 30 characters of field name right justified. A -30 will print 30 characters left justified.

output will be '|' delimited with a '|' at the end

output will be '|' delimited without a '|' at the end

Display a command usage summary.

Primarily for debugging purposes, report the state of various variables during processing.

Print version.

The following are the field options:

Average (system + user) CPU time of all tasks in job.

Average weighted CPU frequency of all tasks in job, in kHz.

Average number of bytes read by all tasks in job.

Average number of bytes written by all tasks in job.

Average number of page faults of all tasks in job.

Average resident set size of all tasks in job.

Average Virtual Memory size of all tasks in job.

Total energy consumed by all tasks in job, in joules. Note: Only in case of exclusive job allocation this value reflects the jobs' real energy consumption.

The number of the job or job step. It is in the form: job.jobstep.

Maximum number of bytes read by all tasks in job.

The node on which the maxdiskread occurred.

The task ID where the maxdiskread occurred.

Maximum number of bytes written by all tasks in job.

The node on which the maxdiskwrite occurred.

The task ID where the maxdiskwrite occurred.

Maximum number of page faults of all tasks in job.

The node on which the maxpages occurred.

The task ID where the maxpages occurred.

Maximum resident set size of all tasks in job.

The node on which the maxrss occurred.

The task ID where the maxrss occurred.

Maximum Virtual Memory size of all tasks in job.

The node on which the maxvsize occurred.

The task ID where the maxvsize occurred.

Minimum (system + user) CPU time of all tasks in job.

The node on which the mincpu occurred.

The task ID where the mincpu occurred.

Total number of tasks in a job or step.

Requested CPU frequency for the step, in kHz.

Tres average usage in by all tasks in job. NOTE: If corresponding TresUsageInMaxTask is -1 the metric is node centric instead of task.

Tres maximum usage in by all tasks in job. NOTE: If corresponding TresUsageInMaxTask is -1 the metric is node centric instead of task.

Node for which each maximum TRES usage out occurred.

Task for which each maximum TRES usage out occurred.

Tres average usage out by all tasks in job. NOTE: If corresponding TresUsageOutMaxTask is -1 the metric is node centric instead of task.

Tres maximum usage out by all tasks in job. NOTE: If corresponding TresUsageOutMaxTask is -1 the metric is node centric instead of task.

Node for which each maximum TRES usage out occurred.

Task for which each maximum TRES usage out occurred.

Executing sstat sends a remote procedure call to slurmctld. If enough calls from sstat or other Slurm client commands that send remote procedure calls to the slurmctld daemon come in at once, it can result in a degradation of performance of the slurmctld daemon, possibly resulting in a denial of service.

Do not run sstat or other Slurm client commands that send remote procedure calls to slurmctld from loops in shell scripts or other programs. Ensure that programs limit calls to sstat to the minimum necessary for the information you are trying to gather.

Some sstat options may be set via environment variables. These environment variables, along with their corresponding options, are listed below. (Note: commandline options will always override these settings)

The location of the Slurm configuration file.

25:02.000 0K 1.37M 5.93M 9.0

25:02.000|0K|1.37M|5.93M|9.0|

Copyright (C) 2009 Lawrence Livermore National Security. Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
Copyright (C) 2010-2013 SchedMD LLC.

This file is part of Slurm, a resource management program. For details, see <https://slurm.schedmd.com/>.

Slurm is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Slurm is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

sacct(1)

Slurm Commands June 2018