Selecting Nodes Classes
Node Features
Nodes can be selected by adding requirements to your job scripts.
Such requirements might be a number of processors per node or memory requirement.
For example, if you require 25 processors or more than your job cannot be scheduled on a node with 24 processors.
Another way to select nodes is to use features.
Use the
scontrol show nodes
command to view detailed information about nodes.
Most interesting is the
features string.
$ scontrol show nodes
NodeName=cmp035 Arch=x86_64 CoresPerSocket=4
CPUAlloc=0 CPUErr=0 CPUTot=8 CPULoad=0.01 Features=Infiniband,Intel,E5472
Gres=(null)
NodeAddr=cmp035 NodeHostName=cmp035
OS=Linux RealMemory=64000 AllocMem=0 Sockets=2 Boards=1
State=IDLE ThreadsPerCore=1 TmpDisk=0 Weight=1
BootTime=2014-06-17T16:59:12 SlurmdStartTime=2014-06-17T16:59:52
CurrentWatts=0 LowestJoules=0 ConsumedJoules=0
ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s
Selecting Nodes with a certain feature
To make your processes run only on the Nodes with certain features, append
to your nodes argument of Slurm.
$ sbatch --constraint=<FEATURE> job.sh
And it can also be used in your job scripts:
#!/bin/bash
...
#SBATCH --constraint=<FEATURE>
....