ArticleslgStudy

computer science

Slurm Workload Manager

Slurm Workload Manager is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Slurm Workload Manager rather than just read about it. In short: The Slurm Workload Manager, formerly known as Simple Linux Utility for Resource Management (SLURM), or simply Slurm, is a free and open-source job scheduler for Linux and Unix-like kernels, used by many of the world's supercomputers and computer clusters. Slurm uses a best-fit algorithm based on Hilbert curve scheduling or fat tree network topology in order to optimize locality of task assignments on parallel comput…

Slurm Workload Manager — main illustration
Slurm Workload Manager — illustration

Key takeaways

  • Slurm Workload Manager belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Slurm Workload Manager to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Slurm Workload Manager from memory before moving on to harder problems.

Reference excerpt

The Slurm Workload Manager, formerly known as Simple Linux Utility for Resource Management (SLURM), or simply Slurm, is a free and open-source job scheduler for Linux and Unix-like kernels, used by many of the world's supercomputers and computer clusters. Slurm uses a best-fit algorithm based on Hilbert curve scheduling or fat tree network topology in order to optimize locality of task assignments on parallel computers. It provides three key functions:

allocating exclusive and/or non-exclusive access to resources (computer nodes) to users for some duration of time so they can perform work, providing a framework for starting, executing, and monitoring work, typically a parallel job such as Message Passing Interface (MPI) on a set of allocated nodes, and arbitrating contention for resources by managing a queue of pending jobs.

History Slurm began development as a collaborative effort primarily by Lawrence Livermore National Laboratory, SchedMD, Linux NetworX, Hewlett-Packard, and Groupe Bull as a Free Software resource manager. The first release happened in 2002. It was inspired by the closed source Quadrics RMS and shares a similar syntax. The name is a reference to the soda in Futurama. Over 250 people around the world have contributed to the project. It has since evolved into a sophisticated batch scheduler capable of satisfying the requirements of many large computer centers. In 2010, the developers of Slurm founded SchedMD, which maintains the canonical source, provides development, level 3 commercial support and training services. Commercial support is also available from Bull, Cray, and Science + Computing (subsidiary of Atos). As of November 2021, Slurm is the workload manager on about 60% of the TOP500 supercomputers.

Structure Slurm's design is very modular with about 100 optional plugins. In its simplest configuration, it can be installed and configured in a couple of minutes. More sophisticated configurations provide database integration for accounting, management of resource limits and workload prioritization.

Supported platforms Recent Slurm releases run only on Linux. Older versions had been ported to a few other POSIX-based operating systems, including BSDs (FreeBSD, NetBSD and OpenBSD), but this is no longer feasible as Slurm now requires cgroups for core operations. Clusters running operating systems other than Linux will need to use a different batch system, such as LPJS. Slurm also supports several unique computer architectures, including:

IBM BlueGene/Q models, including the 20 petaflop IBM Sequoia Cray XT, XE and Cascade Tianhe-2 a 33.9 petaflop system with 32,000 Intel Ivy Bridge chips and 48,000 Intel Xeon Phi chips with a total of 3.1 million cores IBM Parallel Environment Anton

Usage

The slurm system has three main parts:

slurmctld, a central control daemon running on a single control node (optionally with failover backups); Many computing nodes, each with one or more slurmd daemons; Clients that connect to the manager node, often with ssh. The clients can issue commands to the control daemon, which would accept and divide the workload to the computing daemons. For clients, the main commands are srun (queue up an interactive job), sbatch (queue up a job), squeue (print the job queue) and scancel (remove a job from the queue). Jobs can be run in batch mode or interactive mode. For interactive mode, a compute node would start a shell, connects the client into it, and run the job. From there the user may observe and interact with the job while it is running. Usually, interactive jobs are used for initial debugging, and after debugging, the same job would be submitted by sbatch. For a batch mode job, its stdout and stderr outputs are typically directed to text files for later inspection.

See also

Job Scheduler and Batch Queuing for Clusters Beowulf cluster Maui Cluster Scheduler Open Source Cluster Application Resources (OSCAR) TORQUE Univa Grid Engine Platform LSF

References

Further reading

External links Official website Slurm Documentation Slurm Workload Manager Architecture Configuration and Use Caltech HPC Center: Job Script Generator

Illustrations

Slurm Workload Manager illustration
Slurm Workload Manager: Slurm distinguishes several stages for a job.
Slurm distinguishes several stages for a job.

Worked examples

Example 1 — a first encounter with Slurm Workload Manager

Start with the simplest possible case. Write down what Slurm Workload Manager claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Slurm Workload Manager before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Slurm Workload Manager ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Slurm Workload Manager

In research
Slurm Workload Manager appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Slurm Workload Manager in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Slurm Workload Manager is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cluster computing, Free software programmed in C, Grid computing, so understanding it makes those chapters shorter.
In everyday life
Look for Slurm Workload Manager outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Slurm Workload Manager” →

How to study Slurm Workload Manager in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Slurm Workload Manager means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Slurm Workload Manager out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Slurm Workload Manager in simple terms?

The Slurm Workload Manager, formerly known as Simple Linux Utility for Resource Management (SLURM), or simply Slurm, is a free and open-source job scheduler for Linux and Unix-like kernels, used by many of the world's supercomputers and computer clusters. Slurm uses a best-fit algorithm based on Hi…

Why does Slurm Workload Manager matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Slurm Workload Manager?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Slurm Workload Manager.

Tags

  • Cluster computing
  • Free software programmed in C
  • Grid computing
  • Job scheduling
  • Parallel computing
  • Software using the GNU General Public License

Keep exploring