... | ... | @@ -5,6 +5,7 @@ The most common commands are: |
|
|
* [sbatch](https://slurm.schedmd.com/sbatch.html)
|
|
|
* salloc
|
|
|
* [squeue](https://slurm.schedmd.com/squeue.html)
|
|
|
* [sstat](https://slurm.schedmd.com/sstat.html)
|
|
|
* scontrol
|
|
|
* sview
|
|
|
* sdiag
|
... | ... | @@ -45,4 +46,20 @@ For a more informative output you can specify an output format like : |
|
|
```
|
|
|
squeue -o "%.10A %.18u %.3t %.5C %.20S %.5D %.10a %.10M %.9P"
|
|
|
```
|
|
|
For a full list of all the options please read the [squeue manual](https://slurm.schedmd.com/squeue.html). |
|
|
\ No newline at end of file |
|
|
For a full list of all the options please read the [squeue manual](https://slurm.schedmd.com/squeue.html).
|
|
|
|
|
|
#Accounting for running jobs
|
|
|
The default command to use is:
|
|
|
```
|
|
|
sstat
|
|
|
```
|
|
|
Note : sstat -j <jobid> can only be used on jobs submitted with srun.
|
|
|
For sbatch submitted jobs use <jobid>.batch
|
|
|
To view your memory consumption for a sbatch job use:
|
|
|
```
|
|
|
sstat -j <JobID>.batch -o maxrss
|
|
|
```
|
|
|
To view all the available options you can display with -o option use the command:
|
|
|
```
|
|
|
sstat -e
|
|
|
``` |