Håvard O. Nordstrand 4 år sedan
förälder
incheckning
480e710006
2 ändrade filer med 33 tillägg och 0 borttagningar
  1. 29 0
      config/hpc/slurm.md
  2. 4 0
      index.md

+ 29 - 0
config/hpc/slurm.md

@@ -0,0 +1,29 @@
+---
+title: Slurm Workload Manager
+breadcrumbs:
+- title: Configuration
+- title: IoT
+---
+{% include header.md %}
+
+## Usage
+
+### Basics
+
+- Cluster information:
+    - Show partitions: `scontrol show partition [-a]`
+    - Show node capabilities: `sinfo -o "%20N    %8c    %10m    %25f    %10G"` (example)
+- Accounting:
+    - Show accounts for user: `sacctmgr show assoc where user=<username> format=account`
+    - Show default account for user: `sacctmgr show user <username> format=defaultaccount`
+- Job and job queue information:
+    - Show job queue: `squeue [-u <user>] [-t <state>] [-p <partition>]`
+    - Show job details: `scontrol show jobid -dd <jobid>`
+- Job handling:
+    - Create a job (overview): Make a Slurm script, make it executable and submit it.
+    - Submit interactive/blocking job: `srun [--pty bash] <...>`
+    - Submit batch/non-blocking job: `sbatch <...>`
+    - Cancel specific job: `scancel <jobid>`
+    - Cancel multiple jobs: `scancel [-t <state>] [-u <user>]`
+
+{% include footer.md %}

+ 4 - 0
index.md

@@ -62,6 +62,10 @@ Random collection of config notes and miscellaneous theory. Technically not a wi
 - [Ubiquiti UniFi Controllers](config/network/ubiquiti-unifi-controllers/)
 - [Uniquiti UniFi Access Points](config/network/ubiquiti-unifi-aps/)
 
+### HPC
+
+- [Slurm Workload Manager](config/hpc/slurm/)
+
 ### Game Servers
 
 - [Counter-Strike: Global Offensive (CS:GO)](config/game-servers/csgo/)