LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sbatch

Submit batch jobs to the Slurm scheduler

TLDR

Submit batch job
$ sbatch [job.sh]
copy
Submit with custom name
$ sbatch --job-name=[myjob] [job.sh]
copy
Set time limit
$ sbatch --time=[00:30:00] [job.sh]
copy
Request multiple nodes
$ sbatch --nodes=[3] [job.sh]
copy

SYNOPSIS

sbatch [--job-name name] [--time limit] [--nodes n] [--cpus-per-task n] [script]

DESCRIPTION

sbatch submits batch job scripts to the SLURM workload manager. Jobs are queued and executed when requested resources become available on the cluster.Job scripts contain SLURM directives (lines starting with #SBATCH) specifying resource requirements, followed by commands to execute. SLURM handles job scheduling and resource allocation.

PARAMETERS

--job-name _name_

Job name
--time _time_
Time limit (HH:MM:SS)
--nodes _n_
Number of nodes
--ntasks _n_
Number of tasks
--cpus-per-task _n_
CPUs per task
--mem _size_
Memory per node
--partition _name_
Partition/queue to use
--output _file_
Output file (%j for job ID)
--error _file_
Error file
--mail-type _type_
Email notifications (BEGIN, END, FAIL)

INSTALL

sudo apt install slurm-client
copy

CAVEATS

Resource requests affect queue wait time. Exceeding time limit kills job. Environment may differ from submission shell. Check partition limits with sinfo.

HISTORY

sbatch is part of SLURM (Simple Linux Utility for Resource Management), developed at Lawrence Livermore National Laboratory. SLURM is now the most widely used HPC job scheduler.

SEE ALSO

squeue(1), scancel(1), sinfo(1), srun(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid