sstat is a command-line tool that is part of the Slurm workload manager suite. It allows users and administrators to view information about running jobs on a Slurm-managed cluster.
The sstat command can be used to retrieve a wide range of information about running jobs, including resource usage, job status, memory usage, and more. It is particularly useful for monitoring and troubleshooting running jobs, as it provides real-time information on a variety of performance metrics.
If you encounter the below error while running the command deepika:
deepika: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install slurm-client |
Ubuntu | apt-get install slurm-client |
Kali Linux | apt-get install slurm-client |
Fedora | dnf install slurm |
OS X | brew install slurm |
Raspbian | apt-get install slurm-client |
sstat Command Examples
1. Display status information of a comma-separated list of jobs:
# sstat --jobs=job_id
2. Display job ID, average CPU and average virtual memory size of a comma-separated list of jobs, with pipes as column delimiters:
# sstat --parsable --jobs=job_id --format=JobID,AveCPU,AveVMSize
3. Display list of fields available:
# sstat --helpformat
Summary
Overall, sstat is a powerful and flexible tool that is widely used in cluster computing environments to monitor job performance and troubleshoot issues.