cluster:usage_tips:startslurm

This is an old revision of the document!


Slurm is a workload manager/scheduler system
The cluster is a linux environment, connect with SSH

Open a terminal to log-in ssh <myUser>@cheetah.sleep.ru.is

Each user has his home folder, the path is [/mount/home/<username>]

  1. The first step for users is to make sure their working environment fits their needs.
    User can install different version of Python and all necessary modules for their work.
    For those who are using Python, we recommend, for ease of use, using a Python virtual environment
  2. Each user directory has a few files an readMe.lst file and template (slurm) script file (exampleJob.sh)
    Every user needs to use a script file for instructing the cluster what to do
  3. The cluster gives users access to memory, cpu and GPU. To execute your job on the cluster, first update exampleJob.sh to run your code (or make a copy)
    Then submit your job to the queue with command sbatch exampleJob.sh


Your template script file (exampleJob.sh) looks like this
#!/bin/bash
#SBATCH --account=staff
#SBATCH --job-name=runJob
#SBATCH --gpus-per-node=1
#SBATCH --mem-per-cpu=2G
#SBATCH --partition=main
#SBATCH --output=aSlurm.log

Useful commands

cmdDescr
sbatch <exampleJob.sh>Submit job
sacctMy jobs
squeueShow all jobs on the queue
sinfoInformation about the cluster
srunRun job interactively
scancel <id>kill job with <id>
  • cluster/usage_tips/startslurm.1754575973.txt.gz
  • Last modified: 2025/08/07 14:12
  • by bjorn