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
|
.TH sshare "1" "Slurm Commands" "August 2022" "Slurm Commands"
.SH "NAME"
sshare \- Tool for listing the shares of associations to a cluster.
.SH "SYNOPSIS"
\fBsshare\fR [\fIOPTIONS\fR...]
.SH "DESCRIPTION"
\fBsshare\fR is used to view Slurm share information. This command is
only viable when running with the priority/multifactor plugin.
The sshare information is derived from a database with the interface
being provided by \fBslurmdbd\fR (Slurm Database daemon) which is
read in from the slurmctld and used to process the shares available
to a given association. sshare provides Slurm share information of
Account, User, Raw Shares, Normalized Shares, Raw Usage, Normalized
Usage, Effective Usage, the Fair\-share factor, the GrpTRESMins limit,
Partitions and accumulated currently running TRES\-minutes for each association.
.SH "OPTIONS"
.TP
\fB\-A\fR, \fB\-\-accounts\fR=<\fIaccount\fR>
Display information for specific accounts (comma separated list).
.IP
.TP
\fB\-a\fR, \fB\-\-all\fR
Display information for all users.
.IP
.TP
\fB\-M\fR, \fB\-\-clusters\fR=<\fIstring\fR>
Clusters to issue commands to.
Note that the \fBslurmdbd\fR must be up for this option to work properly, unless
running in a federation with \fBFederationParameters=fed_display\fR configured.
.IP
.TP
\fB\-o\fR, \fB\-\-format\fR=<\fIoutput_format\fR>
Comma separated list of fields (use
"\-\-helpformat" for a list of available fields).
.IP
.TP
\fB\-\-help\fR
Display a description of sshare options and commands.
.IP
.TP
\fB\-l\fR, \fB\-\-long\fR
Long listing \- includes the normalized usage information.
.IP
.TP
\f3\-\-json\fP, \f3\-\-json\fP=\fIlist\fR, \f3\-\-json\fP=<\fIdata_parser\fR>
Dump information as JSON using the default data_parser plugin or explicit
data_parser with parameters. Sorting and formatting arguments will be ignored.
.IP
.TP
\fB\-n\fR, \fB\-\-noheader\fR
No header will be added to the beginning of the output.
.IP
.TP
\fB\-p\fR, \fB\-\-parsable\fR
Output will be '|' delimited with a '|' at the end.
.IP
.TP
\fB\-P\fR, \fB\-\-parsable2\fR
Output will be '|' delimited without a '|' at the end.
.IP
.TP
\fB\-m\fR, \fB\-\-partition\fR
If there are association based partitions in the system
print their names.
.IP
.TP
\fB\-\-usage\fR
Display a description of sshare options and commands.
.IP
.TP
\fB\-u\fR, \fB\-\-users\fR=<\fIuser_list\fR>
Display information for specific users (comma separated list).
.IP
.TP
\fB\-U\fR, \fB\-\-Users\fR
If specified only the users information are printed, the parent
and ancestors are not displayed.
.IP
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Display more information about the specified options.
.IP
.TP
\fB\-V\fR, \fB\-\-version\fR
Display the version number of sshare.
.IP
.TP
\f3\-\-yaml\fP, \f3\-\-yaml\fP=\fIlist\fR, \f3\-\-yaml\fP=<\fIdata_parser\fR>
Dump information as YAML using the default data_parser plugin or explicit
data_parser with parameters. Sorting and formatting arguments will be ignored.
.IP
.SH "SSHARE OUTPUT FIELDS"
.TP
\f3Account\fP
The Account.
.IP
.TP
\f3User\fP
The User.
.IP
.TP
\f3Raw Shares\fP
The raw shares assigned to the user or account.
.IP
.TP
\f3Norm Shares\fP
The shares assigned to the user or account normalized to the total
number of assigned shares.
.IP
.TP
\f3Raw Usage\fP
The number of tres\-seconds (cpu\-seconds if TRESBillingWeights is not defined)
of all the jobs charged to the account or user. This number will decay over
time when PriorityDecayHalfLife is defined.
.IP
.TP
\f3Norm Usage\fP (only appears with \fBsshare \-l\fR option)
The Raw Usage normalized to the total number of tres\-seconds of all
jobs run on the cluster, subject to the PriorityDecayHalfLife decay
when defined.
.IP
.TP
\f3Effectv Usage\fP
The Effective Usage augments the normalized usage to account for usage
from sibling accounts.
.IP
.TP
\f3FairShare\fP
The Fair\-Share factor, based on a user or account's assigned shares and
the effective usage charged to them or their accounts.
.IP
.TP
\f3GrpTRESMins\fP
The TRES\-minutes limit set on the account. The total number of cpu
minutes that can possibly be used by past, present and future jobs
running from this account and its children.
.IP
.TP
\f3GrpTRESRaw\fP
The raw TRES usage that has been used by jobs running from
this account and its children.
.IP
.TP
\f3TRESRunMins\fP
The number of TRES\-minutes allocated by jobs currently running against
the account. Used to limit the combined total number of TRES minutes
used by all jobs running with this account and its children.
This takes into consideration time limit of running jobs and consumes it,
if the limit is reached no new jobs are started until other jobs finish
to allow time to free up.
.IP
.SH "FAIR_TREE MODIFICATIONS"
When PriorityFlags=FAIR_TREE is set (the default, unless NO_FAIR_TREE is set),
calculations are done differently.
As a result, the following fields are added or modified:
.TP
\f3Norm Shares\fP
The shares assigned to the user or account normalized to the total
number of assigned shares within the level.
.IP
.TP
\f3Effectv Usage\fP
Effectv Usage is the association's usage normalized with its parent.
.IP
.TP
\f3Level FS\fP (only appears with \fBsshare \-l\fR option)
This is the association's fairshare value compared to its siblings, calculated
as Norm Shares / Effectv Usage. If an association is over\-served, the value is
between 0 and 1. If an association is under\-served, the value is greater than 1.
Associations with no usage receive the highest possible value, infinity.
.IP
.LP
More information about Fair Tree can be found in doc/html/fair_tree.html or
at https://slurm.schedmd.com/fair_tree.html
.SH "PERFORMANCE"
.PP
Executing \fBsshare\fR sends a remote procedure call to \fBslurmctld\fR. If
enough calls from \fBsshare\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 \fBsshare\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 \fBsshare\fR to the minimum
necessary for the information you are trying to gather.
.SH "ENVIRONMENT VARIABLES"
.PP
Some \fBsshare\fR options may be set via environment variables. These
environment variables, along with their corresponding options, are listed below.
(Note: Command line options will always override these settings.)
.TP 20
\fBSLURM_CONF\fR
The location of the Slurm configuration file.
.IP
.TP
\fBSLURM_DEBUG_FLAGS\fR
Specify debug flags for sshare 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
.SH "EXAMPLES"
.TP
Display information about users in a particular account:
.IP
.nf
$ sshare \-A <Account>
.fi
.TP
Display information about a specific user in a parsable format:
.IP
.nf
$ sshare \-\-parsable \-\-users=<User>
.fi
.SH "COPYING"
Copyright (C) 2008 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"
\fBslurm.conf\fR(5),
\fBslurmdbd\fR(8)
|