File: sprio.1

package info (click to toggle)
slurm-wlm-contrib 24.11.5-4
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 50,600 kB
  • sloc: ansic: 529,598; exp: 64,795; python: 17,051; sh: 9,411; javascript: 6,528; makefile: 4,030; perl: 3,762; pascal: 131
file content (407 lines) | stat: -rw-r--r-- 9,277 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
.TH sprio "1" "Slurm Commands" "August 2022" "Slurm Commands"

.SH "NAME"
sprio \- view the factors that comprise a job's scheduling priority

.SH "SYNOPSIS"
\fBsprio\fR [\fIOPTIONS\fR...]

.SH "DESCRIPTION"
\fBsprio\fR is used to view the components of a job's scheduling
priority when the multi\-factor priority plugin is installed.
\fBsprio\fR is a read\-only utility that extracts information from the
multi\-factor priority plugin. By default, \fBsprio\fR returns
information for all pending jobs. Options exist to display specific
jobs by job ID and user name.

.SH "OPTIONS"

.TP
\fB\-M\fR, \fB\-\-clusters\fR=<\fIstring\fR>
The cluster to issue commands to. Only one cluster name may be specified.
Note that the \fBslurmdbd\fR must be up for this option to work properly, unless
running in a federation with either \fBFederationParameters=fed_display\fR
configured or the \fB\-\-federation\fR option set.
This option implicitly sets the \fB\-\-local\fR option.
.IP

.TP
\fB\-\-federation\fR
Show jobs in federation if a member of one.
.IP

.TP
\fB\-o\fR, \fB\-\-format\fR=<\fIoutput_format\fR>
Specify the information to be displayed, its size and position (right
or left justified). The default formats when all factors have been
assigned non\-zero weights are
.IP
.RS
.TP 15
\fIdefault\fR
"%.15i %9r %.10Y %.10S %.10A %.10B %.10F %.10J %.10P %.10Q %20T"
.IP

.TP
\fI\-l, \-\-long\fR
"%.15i %9r %.8u %.8o %.10Y %.10S %.10A %.10B %.10F %.10J %.10P %.10n %.10Q %.11N %.20T";
.IP
.RE

The format of each field is "%[.][size]type".
.IP
.RS
.TP 8
\fIsize\fR
is the minimum field size.
If no size is specified, whatever is needed to print the information will be used.
.IP

.TP
\fI .\fR
indicates the output should be left justified.
By default, output is right justified.
.IP
.RE

Valid \fItype\fR specifications include:
.IP
.RS
.TP 4
\fB%a\fR
Normalized age priority
.IP

.TP
\fB%A\fR
Weighted age priority
.IP

.TP
\fB%b\fR
Normalized association priority
.IP

.TP
\fB%B\fR
Weighted association priority
.IP

.TP
\fB%c\fR
Cluster name. Only applicable for federated clusters
.IP

.TP
\fB%f\fR
Normalized fair\-share priority
.IP

.TP
\fB%F\fR
Weighted fair\-share priority
.IP

.TP
\fB%i\fR
Job ID
.IP

.TP
\fB%j\fR
Normalized job size priority
.IP

.TP
\fB%J\fR
Weighted job size priority
.IP

.TP
\fB%n\fR
QOS name
.IP

.TP
\fB%N\fR
Nice adjustment
.IP

.TP
\fB%o\fR
Account name
.IP

.TP
\fB%p\fR
Normalized partition priority
.IP

.TP
\fB%P\fR
Weighted partition priority
.IP

.TP
\fB%q\fR
Normalized quality of service priority
.IP

.TP
\fB%Q\fR
Weighted quality of service priority
.IP

.TP
\fB%r\fR
Partition name
.IP

.TP
\fB%S\fR
Weighted admin priority.
.IP

.TP
\fB%t\fR
Normalized TRES priorities
.IP

.TP
\fB%T\fR
Weighted TRES priorities
.IP

.TP
\fB%u\fR
User name for a job
.IP

.TP
\fB%Y\fR
Job priority
.IP

.TP
\fB%y\fR
Normalized job priority
.RE
.IP

.TP
\fB\-\-help\fR
Print a help message describing all options \fBsprio\fR.
.IP

.TP
\fB\-j\fR, \fB\-\-jobs\fR=<\fIjob_id_list\fR>
Requests a comma separated list of job ids to display. Defaults to
all jobs. Since this option's argument is optional, for proper parsing
the single letter option must be followed immediately with the value
and not include a space between them. For example "\-j1008,1009" and
not "\-j 1008,1009".
.IP

.TP
\fB\-\-local\fR
Show only jobs local to this cluster. Ignore other clusters in this federation
(if any). Overrides \-\-federation.
.IP

.TP
\fB\-l\fR, \fB\-\-long\fR
Report more of the available information for the selected jobs.
.IP

.TP
\fB\-h\fR, \fB\-\-noheader\fR
Do not print a header on the output.
.IP

.TP
\fB\-n\fR, \fB\-\-norm\fR
Display the normalized priority factors for the selected jobs.
.IP

.TP
\fB\-p\fR, \fB\-\-partition\fR=<\fIpartition_list\fR>
Requests a comma separated list of partitions to display. Defaults to
all partitions.
.IP

.TP
\fB\-\-sibling\fR
Show all sibling jobs on a federated cluster. Without this option in a
federated cluster, each job in each partition will have its priority and its
components reported for only one cluster. Each sibling job on the various
clusters in the federation may have different priority, which will not be
reported without using this option. Implicitly adds "%c" (cluster name) to the
output format.
.IP

.TP
\fB\-S\fR, \fB\-\-sort\fR=<\fIsort_list\fR>
Specification of the order in which jobs should be reported. This uses the same
field specification as <output_format>. Multiple sorts may be performed by
listing multiple sort fields separated by commas. The field specifications may
be preceded by "+" or "\-" for ascending (default) or descending respectively.
For example, a <sort_list> of "u,r,\-y" will sort the job priority reports by
username, partition name, and descending job priority, in that order. The
default <sort_list> is "i" (ascending job id).
.IP

.TP
\fB\-\-usage\fR
Print a brief help message listing the \fBsprio\fR options.
.IP

.TP
\fB\-u\fR, \fB\-\-user\fR=<\fIuser_list\fR>
Request jobs from a comma separated list of users. The list can
consist of user names or user id numbers.
.IP

.TP
\fB\-v\fR, \fB\-\-verbose\fR
Report details of sprios actions.
.IP

.TP
\fB\-V\fR, \fB\-\-version\fR
Print version information and exit.
.IP

.TP
\fB\-w\fR, \fB\-\-weights\fR
Display the configured weights for each factor. This is for information
purposes only. Actual job data is suppressed.
.IP

.SH "PERFORMANCE"
.PP
Executing \fBsprio\fR sends a remote procedure call to \fBslurmctld\fR. If
enough calls from \fBsprio\fR or other Slurm client commands that send remote
procedure calls to the \fBslurmctld\fR daemon come in at once, it can result in
a degradation of performance of the \fBslurmctld\fR daemon, possibly resulting
in a denial of service.
.PP
Do not run \fBsprio\fR or other Slurm client commands that send remote procedure
calls to \fBslurmctld\fR from loops in shell scripts or other programs. Ensure
that programs limit calls to \fBsprio\fR to the minimum necessary for the
information you are trying to gather.

.SH "ENVIRONMENT VARIABLES"
.PP
If no corresponding command line option is specified, \fBsprio\fR will use the
value of the following environment variables.

.TP 20
\fBSLURM_CLUSTERS\fR
Same as \fB\-\-clusters\fR
.IP

.TP
\fBSLURM_CONF\fR
The location of the Slurm configuration file.
.IP

.TP
\fBSLURM_DEBUG_FLAGS\fR
Specify debug flags for sprio to use. See DebugFlags in the
\fBslurm.conf\fR(5) man page for a full list of flags. The environment
variable takes precedence over the setting in the slurm.conf.
.IP

.TP
\fBSPRIO_FEDERATION\fR
Same as \fB\-\-federation\fR
.IP

.TP
\fBSPRIO_FORMAT\fR
Same as \fB\-o <output_format>, \-\-format=<output_format>\fR
.IP

.TP
\fBSPRIO_LOCAL\fR
Same as \fB\-\-local\fR
.IP

.TP
\fBSPRIO_SIBLING\fR
Same as \fB\-\-sibling\fR
.IP

.SH "EXAMPLES"

.TP
Print the list of all pending jobs with their weighted priorities
.IP
.nf
$ sprio
  JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
  65539      62664          0      51664       1000      10000          0
  65540      62663          0      51663       1000      10000          0
  65541      62662          0      51662       1000      10000          0
.fi

.TP
Print the list of all pending jobs with their normalized priorities
.IP
.nf
$ sprio \-n
  JOBID PRIORITY   AGE        FAIRSHARE  JOBSIZE    PARTITION  QOS
  65539 0.00001459 0.0007180  0.5166470  1.0000000  1.0000000  0.0000000
  65540 0.00001459 0.0007180  0.5166370  1.0000000  1.0000000  0.0000000
  65541 0.00001458 0.0007180  0.5166270  1.0000000  1.0000000  0.0000000
.fi

.TP
Print the job priorities for specific jobs
.IP
.nf
$ sprio \-\-jobs=65548,65547
  JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
  65547      62078          0      51078       1000      10000          0
  65548      62077          0      51077       1000      10000          0
.fi

.TP
Print the job priorities for jobs of specific users
.IP
.nf
$ sprio \-\-users=fred,sally
  JOBID     USER  PRIORITY       AGE  FAIRSHARE   JOBSIZE  PARTITION     QOS
  65548     fred     62079         1      51077      1000      10000       0
  65549    sally     62080         1      51078      1000      10000       0
.fi

.TP
Print the configured weights for each priority component
.IP
.nf
$ sprio \-w
  JOBID   PRIORITY        AGE  FAIRSHARE    JOBSIZE  PARTITION        QOS
  Weights                1000     100000       1000      10000          1
.fi

.SH "COPYING"
Copyright (C) 2009 Lawrence Livermore National Security.
Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.br
Copyright (C) 2010\-2022 SchedMD LLC.
.LP
This file is part of Slurm, a resource management program.
For details, see <https://slurm.schedmd.com/>.
.LP
Slurm is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
.LP
Slurm is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
.SH "SEE ALSO"
\fBsqueue\fR(1), \fBsshare\fR(1)