From 2ad471685d202129fcef8bd9b16d0886015ebe3c Mon Sep 17 00:00:00 2001 From: Hans-Nikolai Viessmann Date: Mon, 1 Dec 2025 13:40:40 +0100 Subject: [PATCH] refactored slurm general docs merlin6 --- docs/images/{Slurm => slurm}/scom.gif | Bin docs/images/{Slurm => slurm}/sview.png | Bin .../interactive-jobs.md | 235 -------------- .../monitoring.md | 288 ------------------ .../slurm-general-docs/interactive-jobs.md | 217 +++++++++++++ docs/merlin6/slurm-general-docs/monitoring.md | 278 +++++++++++++++++ .../running-jobs.md | 71 +++-- .../slurm-basic-commands.md | 16 +- .../slurm-examples.md | 29 +- mkdocs.yml | 6 + 10 files changed, 556 insertions(+), 584 deletions(-) rename docs/images/{Slurm => slurm}/scom.gif (100%) rename docs/images/{Slurm => slurm}/sview.png (100%) delete mode 100644 docs/merlin6/03-Slurm-General-Documentation/interactive-jobs.md delete mode 100644 docs/merlin6/03-Slurm-General-Documentation/monitoring.md create mode 100644 docs/merlin6/slurm-general-docs/interactive-jobs.md create mode 100644 docs/merlin6/slurm-general-docs/monitoring.md rename docs/merlin6/{03-Slurm-General-Documentation => slurm-general-docs}/running-jobs.md (84%) rename docs/merlin6/{03-Slurm-General-Documentation => slurm-general-docs}/slurm-basic-commands.md (85%) rename docs/merlin6/{03-Slurm-General-Documentation => slurm-general-docs}/slurm-examples.md (92%) diff --git a/docs/images/Slurm/scom.gif b/docs/images/slurm/scom.gif similarity index 100% rename from docs/images/Slurm/scom.gif rename to docs/images/slurm/scom.gif diff --git a/docs/images/Slurm/sview.png b/docs/images/slurm/sview.png similarity index 100% rename from docs/images/Slurm/sview.png rename to docs/images/slurm/sview.png diff --git a/docs/merlin6/03-Slurm-General-Documentation/interactive-jobs.md b/docs/merlin6/03-Slurm-General-Documentation/interactive-jobs.md deleted file mode 100644 index 0aaf248..0000000 --- a/docs/merlin6/03-Slurm-General-Documentation/interactive-jobs.md +++ /dev/null @@ -1,235 +0,0 @@ ---- -title: Running Interactive Jobs -#tags: -keywords: interactive, X11, X, srun, salloc, job, jobs, slurm, nomachine, nx -last_updated: 07 September 2022 -summary: "This document describes how to run interactive jobs as well as X based software." -sidebar: merlin6_sidebar -permalink: /merlin6/interactive-jobs.html ---- - -## Running interactive jobs - -There are two different ways for running interactive jobs in Slurm. This is possible by using -the ``salloc`` and ``srun`` commands: - -* **``salloc``**: to obtain a Slurm job allocation (a set of nodes), execute command(s), and then release the allocation when the command is finished. -* **``srun``**: is used for running parallel tasks. - -### srun - -Is run is used to run parallel jobs in the batch system. It can be used within a batch script -(which can be run with ``sbatch``), or within a job allocation (which can be run with ``salloc``). -Also, it can be used as a direct command (in example, from the login nodes). - -When used inside a batch script or during a job allocation, ``srun`` is constricted to the -amount of resources allocated by the ``sbatch``/``salloc`` commands. In ``sbatch``, usually -these resources are defined inside the batch script with the format ``#SBATCH