Slurm (Cluster Resource Manager) Commands

Summary

This article provides a quick overview of the most commonly used Slurm commands used by HPC cluster users.

Body

Basic Slurm Commands

 

The table below shows the list of the most common used Slurm commands.

 

Commands     Syntax Description
sinfo sinfo Displays information about the resources available on the cluster.
squeue squeue <options> or simply squeue Shows job information for the cluster. 
When run with squeue -u $USER option, it will show only your jobs in queue.
srun srun <resource_parameters> Allows running interactively on the cluster. 
For example: srun --nodes=1 -p compute -t 1:00:00 --pty /bin/bash
The command above would request 1 node in the compute partition for 1 hour.
scancel scancel <job_id> or <user> Cancels a running or queued job with job_id or cancels all with the -u flag.
Example: scancel 12223 for individual jobs or scancel -u $USER for all jobs

 

Details

Details

Article ID: 135416
Created
Fri 11/19/21 12:47 PM
Modified
Wed 1/24/24 1:01 PM