ICC Home Privacy and Legal Notice LC User Documents Banner

UCRL-WEB-201386

SLURM Reference Manual


SINFO Examples

[1]


Goal:
To display the default status report about all SLURM-managed nodes on the machine (cluster, here ATLAS) where you run SINFO.
Strategy:
Run SINFO with no options. An six-column report (allegedly sorted by node state reported) appears. SINFO automatically ends. In this report, * appended to a partition name indicates the default partition, while * appended to a STATE value indicates that the node reported on that row is not currently responding. To report on only one partition of your choice, use SINFO's -p (--partition) option. To report on only one STATE, use the -t (--states) option. For an explanation of each possible column heading in an SINFO report, see the SINFO Output Fields section above.
User: sinfo

Rtne:
  PARTITION AVAIL TIMELIMIT NODES  STATE NODELIST

  pdebug       up     30:00    37  idle atlas[2-31,34-35]
  pbatch*      up  infinite     2  drain* atlas[606,748]
  pbatch*      up  infinite  1064  alloc atlas[42-63,72-503,514-543,
                                          546-575,578-605,607,610-639,
                                          648-747,749-1079,1090-1119,
                                          1122-1151]
  pbatch*      up  infinite     6   idle atlas[36-41]


[2]


Goal:
To build a customized status report about specific nodes on a SLURM-managed cluster (here, ATLAS), for example, showing only CPUs/node, temporary disk space per node, and allowed nodes/job.
Strategy:
(1) Specify which nodes you want reported by using SINFO's -n (--nodes) option (which here selects ATLAS nodes from 1 to 500 inclusive).
(2) Use SINFO's -o (lowercase oh, --format) option to specify which specific columns (node properties) you want to report, the width of each column in characters, and the order for the columns to appear (left to right). SINFO's general column-specification language is described with -o in the options section above. Here, %25N requests a 25-character node-list column, %.6c requests a 6-character right-justified CPUs/node column, %.8d requests an 8-character right-justified disk-space column, and %.12s requests a 12-character right-justified nodes/job column. For an explanation of each possible column heading in an SINFO report, see the SINFO Output Fields section above.
User: sinfo  -n "atlas[1-500]" -o "%25N %.6c %.8d %.12s"

Rtne:
  NODELIST              CPUS TMP_DISK     JOB_SIZE

  atlas[2-31,34-35]        8        1         1-16

  atlas[36-63,72-500]      8        1   1-infinite





Navigation Links: [ Document List ] [ HPC Home ] [ Next ]