Getting started
What a cluster is, your first batch job, finding out what a job used, and a checklist for when one fails.
This part is for you if you have just been given an allocation on a cluster, and have only ever run your work on your own computer. It starts with what a cluster is, and what you should and shouldn’t do on the node you log in to, then goes through your first batch job, how to find out what a job actually used so that the next one asks for the right resources, and a checklist for when a job fails, with where in this guide each fix is.
| Title | Description |
|---|---|
| What a cluster is | For someone who has an allocation and has only used their laptop: login nodes and compute nodes, the scheduler and why you queue, the shared filesystems, what not to do on a login node, and a map of the rest of this guide. |
| Your first job | A batch script and what each part of it does; submitting it with sbatch, watching it with squeue and cancelling it with scancel; reading its output, following it with tail -F while it runs, and why that output can lag; and a pointer to interactive jobs. |
| What your job actually used | Finding out how much time, memory and CPU a job really used, with sacct after it ends, seff where your cluster has it, and /usr/bin/time -v for the peak memory of each command, so that you can ask for the right resources next time. |
| When a job fails | A checklist for a job that failed, or ran but not the way it should: the software not loaded, the wrong environment, out of memory, out of time, ranks spread unevenly over the nodes, oversubscription, a race condition, and a job that never starts, each with how it shows up and where in this guide the fix is. |
No matching items