Skip to main content
Sign in
Snippets Groups Projects

Slurm guide

Last edited by LOGER Benoit

Here is a non-exhaustive list of commands to run and track your jobs on srvoad. You can refer to the slurm documentation for more details and options. You can also access the documentation in the shell with --help (ex: squeue --help).

squeue

The squeue command gives the list of jobs located in the Slurm scheduling queue.

$ squeue
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
            130212      ls2n    myjob   j21doe  R      56:35      1 srvoad

scontrol

The scontrol command is used to view or modify Slurm configuration including: job, job step, node, partition, reservation, and overall system configuration. It is useful to check your job configurations, suspend or resume jobs.

scontrol show job <JobId>

scontrol show job -u <username>

scontrol suspend <JobId>

scontrol resume <JobId>

scancel

The scancel command is used to cancel jobs.

scancel <JobId>

will cancel all jobs of a given user

scancel -u <username>