1sprio(1)                        Slurm Commands                        sprio(1)
2
3
4

NAME

6       sprio - view the factors that comprise a job's scheduling priority
7
8

SYNOPSIS

10       sprio [OPTIONS...]
11
12

DESCRIPTION

14       sprio  is  used  to  view the components of a job's scheduling priority
15       when the  multi-factor  priority  plugin  is  installed.   sprio  is  a
16       read-only  utility that extracts information from the multi-factor pri‐
17       ority plugin.  By default, sprio returns information  for  all  pending
18       jobs.  Options exist to display specific jobs by job ID and user name.
19
20

OPTIONS

22       -M, --clusters=<string>
23              The  cluster  to issue commands to. Only one cluster name may be
24              specified.  Note that the SlurmDBD must be up for this option to
25              work properly.  This option implicitly sets the --local option.
26
27
28       --federation
29              Show jobs in federation if a member of one.
30
31
32       -o, --format=<output_format>
33              Specify  the  information to be displayed, its size and position
34              (right or left justified).  The default formats when all factors
35              have been assigned non-zero weights are
36
37
38              default        "%.15i  %9r  %.10Y  %.10S %.10A %.10B %.10F %.10J
39                             %.10P %.10Q %20T"
40
41              -l, --long     "%.15i %9r %.8u %.10Y  %.10S  %.10A  %.10B  %.10F
42                             %.10J %.10P %.10Q %.11N %.20T";
43
44
45              The format of each field is "%[.][size]type".
46
47              size    is  the  minimum  field  size.  If no size is specified,
48                      whatever is needed to  print  the  information  will  be
49                      used.
50
51               .      indicates  the  output should be left justified.  By de‐
52                      fault, output is right justified.
53
54
55              Valid type specifications include:
56
57
58              %a  Normalized age priority
59
60              %A  Weighted age priority
61
62              %b  Normalized association priority
63
64              %B  Weighted association priority
65
66              %c  Cluster name. Only applicable for federated clusters
67
68              %f  Normalized fair-share priority
69
70              %F  Weighted fair-share priority
71
72              %i  Job ID
73
74              %j  Normalized job size priority
75
76              %J  Weighted job size priority
77
78              %N  Nice adjustment
79
80              %p  Normalized partition priority
81
82              %P  Weighted partition priority
83
84              %q  Normalized quality of service priority
85
86              %Q  Weighted quality of service priority
87
88              %r  Partition name
89
90              %S  Weighted admin priority.
91
92              %t  Normalized TRES priorities
93
94              %T  Weighted TRES priorities
95
96              %u  User name for a job
97
98              %Y  Job priority
99
100              %y  Normalized job priority
101
102
103       --help Print a help message describing all options sprio.
104
105
106       -j, --jobs=<job_id_list>
107              Requests a comma separated list of job ids to display.  Defaults
108              to  all  jobs.  Since  this  option's  argument is optional, for
109              proper parsing the single letter option must be followed immedi‐
110              ately  with  the value and not include a space between them. For
111              example "-j1008,1009" and not "-j 1008,1009".
112
113
114       --local
115              Show only jobs local to this cluster. Ignore other  clusters  in
116              this federation (if any). Overrides --federation.
117
118
119       -l, --long
120              Report more of the available information for the selected jobs.
121
122
123       -h, --noheader
124              Do not print a header on the output.
125
126
127       -n, --norm
128              Display the normalized priority factors for the selected jobs.
129
130
131       -p, --partition=<partition_list>
132              Requests  a  comma separated list of partitions to display.  De‐
133              faults to all partitions.
134
135
136       --sibling
137              Show all sibling jobs on a federated cluster. Without  this  op‐
138              tion  in  a  federated  cluster, each job in each partition will
139              have its priority and its components reported for only one clus‐
140              ter.  Each sibling job on the various clusters in the federation
141              may have different priority, which will not be reported  without
142              using  this  option.  Implicitly adds "%c" (cluster name) to the
143              output format.
144
145
146       -S, --sort=<sort_list>
147              Specification of the order in which  jobs  should  be  reported.
148              This  uses the same field specification as <output_format>. Mul‐
149              tiple sorts may be performed by  listing  multiple  sort  fields
150              separated by commas. The field specifications may be preceded by
151              "+" or "-" for ascending (default) or  descending  respectively.
152              For  example, a <sort_list> of "u,r,-y" will sort the job prior‐
153              ity reports by username, partition name, and descending job pri‐
154              ority,  in that order. The default <sort_list> is "i" (ascending
155              job id).
156
157
158       --usage
159              Print a brief help message listing the sprio options.
160
161
162       -u, --user=<user_list>
163              Request jobs from a comma separated list of users.  The list can
164              consist of user names or user id numbers.
165
166
167       -v, --verbose
168              Report details of sprios actions.
169
170
171       -V, --version
172              Print version information and exit.
173
174
175       -w, --weights
176              Display the configured weights for each factor.  This is for in‐
177              formation purposes only.  Actual job data is suppressed.
178
179

PERFORMANCE

181       Executing sprio sends a remote procedure call to slurmctld.  If  enough
182       calls from sprio or other Slurm client commands that send remote proce‐
183       dure calls to the slurmctld daemon come in at once, it can result in  a
184       degradation  of performance of the slurmctld daemon, possibly resulting
185       in a denial of service.
186
187       Do not run sprio or other Slurm client commands that send remote proce‐
188       dure  calls to slurmctld from loops in shell scripts or other programs.
189       Ensure that programs limit calls to sprio to the minimum necessary  for
190       the information you are trying to gather.
191
192

ENVIRONMENT VARIABLES

194       If  no  corresponding  command line option is specified, sprio will use
195       the value of the following environment variables.
196
197       SLURM_CLUSTERS      Same as --clusters
198
199
200       SLURM_CONF          The location of the Slurm configuration file.
201
202
203       SPRIO_FEDERATION    Same as --federation
204
205
206       SPRIO_FORMAT        Same as -o  <output_format>,  --format=<output_for‐
207                           mat>
208
209
210       SPRIO_LOCAL         Same as --local
211
212
213       SPRIO_SIBLING       Same as --sibling
214
215

EXAMPLES

217       Print the list of all pending jobs with their weighted priorities
218
219              $ sprio
220                JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
221                65539      62664          0      51664       1000      10000          0
222                65540      62663          0      51663       1000      10000          0
223                65541      62662          0      51662       1000      10000          0
224
225
226       Print the list of all pending jobs with their normalized priorities
227
228              $ sprio -n
229                JOBID PRIORITY   AGE        FAIRSHARE  JOBSIZE    PARTITION  QOS
230                65539 0.00001459 0.0007180  0.5166470  1.0000000  1.0000000  0.0000000
231                65540 0.00001459 0.0007180  0.5166370  1.0000000  1.0000000  0.0000000
232                65541 0.00001458 0.0007180  0.5166270  1.0000000  1.0000000  0.0000000
233
234
235       Print the job priorities for specific jobs
236
237              $ sprio --jobs=65548,65547
238                JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
239                65547      62078          0      51078       1000      10000          0
240                65548      62077          0      51077       1000      10000          0
241
242
243       Print the job priorities for jobs of specific users
244
245              $ sprio --users=fred,sally
246                JOBID     USER  PRIORITY       AGE  FAIRSHARE   JOBSIZE  PARTITION     QOS
247                65548     fred     62079         1      51077      1000      10000       0
248                65549    sally     62080         1      51078      1000      10000       0
249
250
251       Print the configured weights for each priority component
252
253              $ sprio -w
254                JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
255                Weights                1000     100000       1000      10000          1
256
257

COPYING

259       Copyright  (C)  2009 Lawrence Livermore National Security.  Produced at
260       Lawrence Livermore National Laboratory (cf, DISCLAIMER).
261       Copyright (C) 2010-2021 SchedMD LLC.
262
263       This file is part of Slurm, a resource  management  program.   For  de‐
264       tails, see <https://slurm.schedmd.com/>.
265
266       Slurm  is free software; you can redistribute it and/or modify it under
267       the terms of the GNU General Public License as published  by  the  Free
268       Software  Foundation;  either version 2 of the License, or (at your op‐
269       tion) any later version.
270
271       Slurm is distributed in the hope that it will be  useful,  but  WITHOUT
272       ANY  WARRANTY;  without even the implied warranty of MERCHANTABILITY or
273       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General  Public  License
274       for more details.
275

SEE ALSO

277       squeue(1), sshare(1)
278
279
280
281May 2021                        Slurm Commands                        sprio(1)
Impressum