Slurm management system
Slurm
Slurm is a cluster management system that allows users to manage and schedule jobs on a cluster of computers. A Together GPU Cluster provides Slurm configured out-of-the-box for distributed training and the option to use your own scheduler. Users can submit computing jobs to the Slurm head node where the scheduler will assign the tasks to available GPU nodes based on resource availability. For more information on Slurm, see the Slurm Quick Start User Guide.
Slurm Basic Concepts
- Jobs: A job is a unit of work that is submitted to the cluster. Jobs can be scripts, programs, or other types of tasks.
- Nodes: A node is a computer in the cluster that can run jobs. Nodes can be physical machines or virtual machines.
- Head Node: Each Together GPU Cluster cluster is configured with head node. A user will login to the head node to write jobs, submit jobs to the GPU cluster, and retrieve the results.
- Partitions: A partition is a group of nodes that can be used to run jobs. Partitions can be configured to have different properties, such as the number of nodes and the amount of memory available.
- Priorities: Priorities are used to determine which jobs should be run first. Jobs with higher priorities are given preference over jobs with lower priorities.
Using Slurm
- Job Submission: Jobs can be submitted to the cluster using the
sbatch
command. Jobs can be submitted in batch mode or interactively using thesrun
command. - Job Monitoring: Jobs can be monitored using the
squeue
command, which displays information about the jobs that are currently running or waiting to run. - Job Control: Jobs can be controlled using the
scancel
command, which allows users to cancel or interrupt jobs that are running.
Slurm Job Arrays
You can use Slurm job arrays to partition input files into k chunks and distribute the chunks across the nodes. See this example on processing RPv1 which will need to be adapted to your processing: arxiv-clean-slurm.batch
Troubleshooting Slurm
- Error Messages: Slurm provides error messages that can help users diagnose and troubleshoot problems.
- Log Files: Slurm provides log files that can be used to monitor the status of the cluster and diagnose problems.
Updated 6 months ago