sshare(1)
π sshare(1) β the Slurm Commands era π
okay bestie, gather round, because we're talking about sshare β the tool for listing the shares of associations to a cluster. she lives in the Slurm Commands family and she is so useful, no cap. π¦
β¨ NAME β¨
sshare β tool for listing the shares of associations to a cluster. that's it, that's her job description, and she ate. π
πΈ SYNOPSIS πΈ
sshare [OPTIONS...]
π DESCRIPTION π
so like, sshare is used to view Slurm share information. β
heads up bestie: this command is only viable when running with the priority/multifactor plugin. like, if you're not running that, she simply cannot serve. π
the sshare info is derived from a database with the interface being provided by slurmdbd (the Slurm Database daemon), which is read in from the slurmctld and used to process the shares available to a given association. the pipeline is iconic, we love a chain of custody. π
and what does sshare actually give you?? it 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 the accumulated currently running TRES-minutes for each association
she gives range, she gives data, she gives everything fr fr. πβ¨
π OPTIONS π
every single flag, nobody left behind, periodt:
-A,--accounts=<account>β display information for specific accounts (comma separated list). yes bestie, comma separated, load her up. π-a,--allβ display information for all users. everyone gets a shoutout. π-M,--clusters=<string>β clusters to issue commands to. note that theslurmdbdmust be up for this option to work properly, unless running in a federation withFederationParameters=fed_displayconfigured. π-o,--format=<output_format>β comma separated list of fields (use"--helpformat"for a list of available fields). pick your own adventure, bestie. π--helpβ display a description ofsshareoptions and commands. she's telling you everything. π«Ά-l,--longβ long listing β includes the normalized usage information. the deluxe version. π--json,--json=list,--json=<data_parser>β dump information as JSON using the default data_parser plugin or explicit data_parser with parameters. sorting and formatting arguments will be ignored. β¨-n,--noheaderβ no header will be added to the beginning of the output. sleek. minimal. she's not doing intros today. π-p,--parsableβ output will be'|'delimited with a'|'at the end. pipe at the end, she closes her loops. π-P,--parsable2β output will be'|'delimited without a'|'at the end. no trailing pipe, we're being demure. π§-m,--partitionβ if there are association based partitions in the system, print their names. ποΈ--usageβ display a description ofsshareoptions and commands. (yes, twin of--help, love that for us.) π-u,--users=<user_list>β display information for specific users (comma separated list). π-U,--Usersβ if specified only the users information are printed, the parent and ancestors are not displayed. no family tree, just the user. π-v,--verboseβ display more information about the specified options. she's oversharing and we're here for it. π₯-V,--versionβ display the version number ofsshare. π--yaml,--yaml=list,--yaml=<data_parser>β dump information as YAML using the default data_parser plugin or explicit data_parser with parameters. sorting and formatting arguments will be ignored. πΈ
π₯ SSHARE OUTPUT FIELDS π₯
here's what each column is actually saying, translated with love:
- Account β the Account. π
- User β the User. π
- Raw Shares β the raw shares assigned to the user or account.
- Norm Shares β the shares assigned to the user or account normalized to the total number of assigned shares.
- Raw Usage β the number of tres-seconds (cpu-seconds if
TRESBillingWeightsis not defined) of all the jobs charged to the account or user. this number will decay over time whenPriorityDecayHalfLifeis defined. π - Norm Usage (only appears with
sshare -loption) β the Raw Usage normalized to the total number of tres-seconds of all jobs run on the cluster, subject to thePriorityDecayHalfLifedecay when defined. - Effectv Usage β the Effective Usage augments the normalized usage to account for usage from sibling accounts. π―
- FairShare β the Fair-Share factor, based on a user's assigned shares and the effective usage charged to them.
- GrpTRESMins β 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.
- GrpTRESRaw β the raw TRES usage that has been used by jobs running from this account and its children.
- TRESRunMins β 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. π (respect the budget, bestie.)
π 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:
- Norm Shares β the shares assigned to the user or account normalized to the total number of assigned shares within the level. β
- Effectv Usage β Effectv Usage is the association's usage normalized with its parent. π
- Level FS (only appears with
sshare -loption) β this is the association's fairshare value compared to its siblings, calculated asNorm Shares / Effectv Usage. if an association is over-served, the value is between0and1. if an association is under-served, the value is greater than1. associations with no usage receive the highest possible value, infinity. π
more information about Fair Tree can be found in doc/html/fair_tree.html or at https://slurm.schedmd.com/fair_tree.html
π«Ά PERFORMANCE π«Ά
β οΈ okay this part matters, listen up bestie β οΈ
executing sshare sends a remote procedure call to slurmctld. if enough calls from sshare or other Slurm client commands that send remote procedure calls to the slurmctld daemon come in at once, it can result in a degradation of performance of the slurmctld daemon, possibly resulting in a denial of service. π
do not run sshare or other Slurm client commands that send remote procedure calls to slurmctld from loops in shell scripts or other programs. ensure that programs limit calls to sshare to the minimum necessary for the information you are trying to gather. like, be normal about it. π
π ENVIRONMENT VARIABLES π
some sshare 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 β the CLI is the main character. π)
SLURM_CONFβ the location of the Slurm configuration file.SLURM_DEBUG_FLAGSβ specify debug flags forsshareto use. seeDebugFlagsin theslurm.conf(5)man page for a full list of flags. the environment variable takes precedence over the setting in theslurm.conf.SLURM_JSONβ control JSON serialization:compactβ output JSON as compact as possible.prettyβ output JSON in pretty format to make it more readable.
SLURM_YAMLβ control YAML serialization:compactβ output YAML as compact as possible.prettyβ output YAML in pretty format to make it more readable.
π EXAMPLES π
display information about users in a particular account:
$ sshare -A <Account>
display information about a specific user in a parsable format:
$ sshare --parsable --users=<User>
π COPYING π
Copyright (C) 2008 Lawrence Livermore National Security. Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). Copyright (C) 2010-2022 SchedMD LLC.
this file is part of Slurm, a resource management program. for details, see <https://slurm.schedmd.com/>. π
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.
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. π (yes the caps are staying, that's lawyer voice, respect it.)
π« SEE ALSO π«
and that's the whole page bestie!! π this was Slurm 26.05 talking, from the Slurm Commands corner of the universe, and honestly? slay. go check your shares, stay hydrated, and don't run her in a loop. πβ¨π¦
π¦ where this page comes from
- arch rolling: slurm-llnl 26.05.5.1-1 Β· GPL-2.0-or-later
- epel 10: slurm 26.05.5-1.el10_3 Β· GPL-2.0-or-later AND BSD-2-Clause AND BSD-1-Clause
- nixpkgs unstable: slurm 26-05-5-1
- ubuntu stonking: slurm-client 26.05.4-1ubuntu1 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms