Files
gitea-pages/pages/merlin6/merlin6-slurm/slurm-basic-commands.md
2019-06-19 16:53:19 +02:00

1.4 KiB

title, last_updated, sidebar, permalink
title last_updated sidebar permalink
Slurm Basic Commands 19 June 2019 merlin6_sidebar /merlin6/slurm-basics.html

In this document some basic commands for using Slurm are showed. Advanced examples for some of these are explained in other Merlin6 Slurm pages. You can always use man <command> pages for more information about options and examples.

Basic commands

Useful commands for the slurm:

sinfo            # to see the name of nodes, their occupancy, 
                 # name of slurm partitions, limits (try out with "-l" option)
squeue           # to see the currently running/waiting jobs in slurm 
                 # (additional "-l" option may also be useful)
sbatch Script.sh # to submit a script (example below) to the slurm.
srun <command>   # to submit a command to Slurm. Same options as in 'sbatch' can be used.
salloc           # to allocate computing nodes. Use for interactive runs.
scancel job_id   # to cancel slurm job, job id is the numeric id, seen by the squeue.

Advanced basic commands:

sinfo -N -l      # list nodes, state, resources (#CPUs, memory per node, ...), etc.
sshare -a        # to list shares of associations to a cluster
sprio -l         # to view the factors that comprise a job's scheduling priority 
                 # add '-u <username>' for filtering user