SHARE_TREE(5)
β¨ SHARE_TREE(5) β¨
ok so bestie, this is the manual page for share_tree β the Grid Engine share tree file format π and yes it's a whole file format, we're doing file formats today, get comfy π
πΈ DESCRIPTION πΈ
so like. the share tree is the vibe-check on long-term resource entitlements π β it defines them for users and projects, and also for a whole hierarchy of arbitrary groups of those users/projects. it's giving family tree but for resources, fr fr π
β οΈ ngl there's a thing you gotta know: it's normally necessary to maintain users explicitly to use a share tree. don't rely on automatic creation and (specifically) automatic destruction, okay?? or at the very least setauto_user_delete_timeto0. seeuser(5). this is not optional-coded, it's a real caveat π
wanna see your current share tree? slay, use the qconf(1) -sstree or -sst options β¨ and the output follows the share_tree format description, so it'll look like exactly the stuff we're about to describe.
wanna make one, or glow up an existing one? use the -astree and -mstree options to qconf(1) π«Ά
and if you want the β¨aestheticβ¨ tree view, the -sst option shows a formatted share tree (tree view). main character energy honestly.
individual share tree nodes? you can create, modify, delete, or show them via the -astnode, -dstnode, -mstnode, and -sstnode options to qconf(1) π
oh also β important detail β Grid Engine allows backslashes (\) to be used to escape newline characters. the backslash and the newline both get replaced with a space character before any interpretation happens. so like, the parser does a little makeover first and then reads it π¦
π FORMAT π
the format of a share tree file is defined as follows, bestie:
- a new node starts with the attribute
id, an equal sign, and the numeric identification number of the node. further attributes of that node follow until anotheridkeyword shows up (that's the "new node, who dis" moment) β¨ - the attribute
typedefines whether a sharetree node references a user (type=0), or a project (type=1) πΈ - the attribute
childnodescontains a comma-separated list of child nodes to this node π - the parameter
namerefers to an arbitrary name for the node, or to a corresponding user (seeuser(5)) or project (seeproject(5)) if the node is a leaf node of the share tree. the name of the root node of the tree is"Root"by convention π«Ά - the parameter
sharesdefines the share of the node among the nodes with the same parent node π - a user leaf node named
'default'can be defined as a descendant of aproject(5)node in the share tree. thedefaultnode defines the number of shares for users who are running in the project, but who do not have a user node defined under the project. the default user node is a convenient way of specifying a single node for all users which should receive an equal share of the project resources π the default node may be specified by itself or with otheruser(5)nodes at the same level below a project. all users β whether explicitly specified as a user node or those which map to the'default'user node β must have a correspondinguser(5)object defined in order to get shares. π¨
π do NOT configure auser(5)object named'default'. like, don't. that's the one rule. periodt.
π₯ EXAMPLES π₯
jobs of projects P1 and P2 get 50 shares, all other jobs get 10 shares. it's giving fair but not too fair π
id=0
name=Root
type=0
shares=1
childnodes=1,2,3
id=1
name=P1
type=1
shares=50
childnodes=NONE
id=2
name=P2
type=1
shares=50
childnodes=NONE
id=3
name=default
type=0
shares=10
childnodes=NONE
π¦ SEE ALSO π¦
sge_intro(1), qconf(1), qmon(1), sge_share_mon(1), project(5), user(5).
π COPYRIGHT π
see sge_intro(1) for a full statement of rights and permissions π
and that's the whole page bestie!! this iconic little doc is from SGE 8.1.3pre, dated 2011-05-19, and yeah it's literally the SHARE_TREE(5) manual β go forth and configure your shares, you've got this π
β¨π
π¦ where this page comes from
- debian bookworm: gridengine-common 8.1.9+dfsg-10 Β· SISSL
- debian trixie: gridengine-common 8.1.9+dfsg-13.1 Β· SISSL
- ubuntu jammy: gridengine-common 8.1.9+dfsg-10build1 Β· SISSL
- ubuntu noble: gridengine-common 8.1.9+dfsg-11build3 Β· SISSL
- ubuntu questing: gridengine-common 8.1.9+dfsg-13.1
- ubuntu resolute: gridengine-common 8.1.9+dfsg-13.2 Β· SISSL
- ubuntu stonking: gridengine-common 8.1.9+dfsg-13.2ubuntu1 Β· SISSL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms