Differences

This shows you the differences between two versions of the page.

Link to this comparison view

infra:slurm [2026/11/18 20:44] – created artooinfra:slurm [2026/11/20 10:21] (current) – thin-01 fixed, memory-scheduling note added, state verified 2026-11-20 artoo
Line 1: Line 1:
 ====== Slurm (Infrastructure) ====== ====== Slurm (Infrastructure) ======
  
-Slurm cluster state as captured from scontrol-01 on 2026-11-18.+Slurm cluster state as verified live from the login nodes on 2026-11-20.
 User-facing guide: [[software:slurm|Using Slurm]]. User-facing guide: [[software:slurm|Using Slurm]].
  
Line 8: Line 8:
   * ''slurmctld'' runs in the Devuan VM ''scontrol-01'' on bane (172.20.200.16)   * ''slurmctld'' runs in the Devuan VM ''scontrol-01'' on bane (172.20.200.16)
   * ''SlurmctldHost[0]'' = scontrol; MaxJobCount 10000   * ''SlurmctldHost[0]'' = scontrol; MaxJobCount 10000
-  * Slurm version: 25.11.1 (verified on thin-01, 2026-11-18)+  * Slurm version: 25.11.1 (verified 2026-11-20)
  
 ===== Partitions ===== ===== Partitions =====
  
 ^ Partition ^ Nodes ^ CPUs ^ Mem/node ^ PriorityTier ^ Notes ^ ^ Partition ^ Nodes ^ CPUs ^ Mem/node ^ PriorityTier ^ Notes ^
-| compute (default) | thick-01, thick-02, thin-01 | 832 total | 1225188M / 514809M / 386739M | 100 | thin-01 currently inval | +| compute (default) | thick-01, thick-02, thin-01 | 832 total | 1225188M / 514809M / 320000M | 100 | all nodes healthy | 
-| thin | thin-01 | 64 | 386739M | 90 | unusable while thin-01 inval |+| thin | thin-01 | 64 | 320000M | 90 | |
 | thick | thick-01, thick-02 | 768 | 1225188M / 514809M | 50 | high-memory | | thick | thick-01, thick-02 | 768 | 1225188M / 514809M | 50 | high-memory |
 | fast | thick-02 | 640 | 514809M | 33 | newest node, bare metal | | fast | thick-02 | 640 | 514809M | 33 | newest node, bare metal |
Line 22: Line 22:
 **thin-02 is stopped** and absent from the scheduler. **thin-02 is stopped** and absent from the scheduler.
  
-===== Known issue: thin-01 invalid =====+===== Memory scheduling =====
  
-thin-01's RAM was cut from 384G to 320G on geonosis, but slurm.conf still has +  * ''SelectType'' = select/cons_tres, ''SelectTypeParameters'' = **CR_CPU_MEMORY**; no ''DefMemPerNode''/''MaxMemPerNode'' defaults; no cli_filter or job_submit plugins. 
-''RealMemory=386739M''. A slurmd reporting less memory than configured registers as +  * Consequence: a job submitted **without ''--mem''** (or with ''--mem=0'', "all the node's memory") is treated as requesting the **entire memory of the node** — verified 2026-11-20 by submitting a 1-CPU job without ''--mem'': it got ''ReqTRES=cpu=1,mem=1225188M'' and sat ''PENDING (Resources)''. 
-invalid. Actual memory per ''slurmd -C'' on thin-01: **322227 MiB** (CPUs=64, +  * Such jobs are not rejected at submission; they simply never schedule on a busy cluster. Users must always set ''%%--mem%%'' (documented on [[software:slurm]] and [[getting_started:cluster_basics]]). 
-Boards=1, SocketsPerBoard=2, CoresPerSocket=16, ThreadsPerCore=2 — all as configured, + 
-only the memory line is wrong). Fix:+===== Fixed: thin-01 memory mismatch ===== 
 + 
 +**Fixed 2026-11-20.** thin-01's RAM was cut from 384G to 320G on geonosis, but slurm.conf 
 +still said ''RealMemory=386739M''; a slurmd reporting less memory than configured 
 +registers as invalid, so thin-01 sat in ''inval'' state. The node line was corrected to 
 +''RealMemory=320000'' and the node re-registered healthy (''mix'', 320000M) on 
 +2026-11-20. Actual memory per ''slurmd -C'': **322227 MiB** — ''320000'' leaves ~2.2G 
 +for the OS (the node idles at ~1.5G). 
 + 
 +The same procedure applies whenever a node's RAM changes, or when thin-02 returns:
  
 <code> <code>
-# on scontrol-01: edit slurm.conf, NodeName=thin-01 ... RealMemory=320000+# on scontrol-01: edit slurm.conf, NodeName=<node> ... RealMemory=<measured value minus headroom>
 scontrol reconfigure scontrol reconfigure
-# on thin-01: refresh the local copy from the master, then re-register+# on the node: refresh the local copy from the master, then re-register
 sh /etc/slurm/sync.sh && systemctl restart slurmd sh /etc/slurm/sync.sh && systemctl restart slurmd
 # on scontrol-01, if the node does not return by itself: # on scontrol-01, if the node does not return by itself:
-scontrol update NodeName=thin-01 State=resume+scontrol update NodeName=<node> State=resume
 sinfo -R sinfo -R
 </code> </code>
  
-''320000'' leaves ~2.2G for the OS (node idles at ~1.5G); use the exact +Notes for next time: measure with ''slurmd -C'' **on that box** (each node gets its own 
-''322227'' only if every MiB should be bookable. **thin-01's local slurm.conf is +line — no ''thin-[01-02]'' ranges), and remember thin-01's local ''/etc/slurm/slurm.conf'' 
-stale beyond the memory line** (last synced Sep 19: still lists thin-[01-02] +can be stale — ''sync.sh'' refreshes it from the master and keeps a ''.bak''.
-ranges, old thick-01 values, no fast/fat partitions) — the ''sync.sh'' step +
-reconciles all of it and keeps a ''.bak''. When thin-02 returns, give it its own +
-node line measured on that box. +
- +
-(Or restore 384G to thin-01 on geonosis, then restart slurmd the same way.)+
  
 ===== See also ===== ===== See also =====