← 返回命令列表

Linux command

sstat 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

sstat -j [job_id]

Example

sstat -p -j [job_id] -o JobID,AveCPU,AveVMSize

Example

sstat -e

Example

sstat -a -j [job_id]

Example

sstat -i -j [job_id]

说明

sstat displays real-time status information for running Slurm jobs including CPU usage, memory consumption, and I/O statistics. It queries the jobacct_gather plugin for metrics on currently executing jobs and their steps. Root users can view all running jobs; regular users can only see their own jobs. The command is useful for monitoring resource usage during job execution and diagnosing performance issues.

参数

-j, --jobs _job.step_
Job ID or job.step to query (required)
-o, --format, --fields _fields_
Comma-separated list of fields to display
-e, --helpformat
List available format fields
-a, --allsteps
Show all steps for specified job
-i, --pidformat
Display PIDs for each job step
-n, --noheader
Omit header from output
-p, --parsable
Pipe-delimited with trailing pipe
-P, --parsable2
Pipe-delimited without trailing pipe
--noconvert
Keep original units (don't convert)
-v, --verbose
Verbose output
-V, --version
Print version

FAQ

What is the sstat command used for?

sstat displays real-time status information for running Slurm jobs including CPU usage, memory consumption, and I/O statistics. It queries the jobacct_gather plugin for metrics on currently executing jobs and their steps. Root users can view all running jobs; regular users can only see their own jobs. The command is useful for monitoring resource usage during job execution and diagnosing performance issues.

How do I run a basic sstat example?

Run `sstat -j [job_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -j, --jobs _job.step_ do in sstat?

Job ID or job.step to query (required)