pbsfs.8B 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbsfs 8B "15 February 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B pbsfs
  39. \- show or manipulate PBS fairshare usage data
  40. .SH SYNOPSIS
  41. Showing usage data:
  42. .br
  43. .B pbsfs
  44. [-c <entity1> <entity2>] [-g <entity>] [-I <scheduler name>]
  45. [-p] [-t]
  46. .br
  47. Manipulationg usage data:
  48. .br
  49. .B pbsfs
  50. [-d] [-e] [-I <scheduler name>] [-s <entity> <usage value>]
  51. .br
  52. Printing version:
  53. .br
  54. .B pbsfs
  55. --version
  56. .SH DESCRIPTION
  57. You can use the
  58. .B pbsfs
  59. command to print or manipulate the PBS scheduler's
  60. fairshare usage data. You can print the usage data in various
  61. formats, described below. Changes made using
  62. .B pbsfs
  63. take effect in the next scheduling cycle; you do not need to restart or HUP the
  64. scheduler for changes to take effect.
  65. We recommend that if you use the options that manipulate usage data,
  66. you should do this when the scheduler is not scheduling jobs, because
  67. scheduling while changing fairshare usage data may give unwanted
  68. results.
  69. .B Prerequisites
  70. .br
  71. The server must be running in order to use the
  72. .B pbsfs
  73. command.
  74. .B Permissions
  75. .br
  76. You must be root to run the
  77. .B pbsfs
  78. command; if not, it will print the error message,
  79. "Unable to access fairshare data".
  80. .SH OPTIONS
  81. .B You can safely use the following options while jobs are being scheduled:
  82. .IP "(no options)" 10
  83. Same as
  84. .B pbsfs -p
  85. .IP "-c <entity1> <entity2>" 10
  86. Compare two fairshare entities
  87. .IP "-g <entity>" 10
  88. Print a detailed listing for the specified entity, including the path
  89. from the root of the tree to the entity.
  90. .IP "-I <scheduler name>" 10
  91. Specifies name of scheduler whose data is to be manipulated or shown.
  92. Required for multischeds; optional for default scheduler. Name of
  93. default scheduler is "default". If not specified,
  94. .B pbsfs
  95. operates on default scheduler.
  96. .IP "-p" 10
  97. Print the fairshare tree as a table, showing for each internal and
  98. leaf vertex the group ID of the vertex's parent, group ID of the vertex,
  99. vertex shares, vertex usage, and percent of shares allotted to the
  100. vertex.
  101. .IP "-t" 10
  102. Print the fairshare tree in a hierarchical format.
  103. .IP "--version" 10
  104. The
  105. .B pbsfs
  106. command returns its PBS version information and exits.
  107. This option can only be used alone.
  108. .LP
  109. .B It is not recommended to be scheduling jobs when you use the following options:
  110. .IP "-d" 10
  111. Decay the fairshare tree by the amount specified in the
  112. .I fairshare_decay_factor
  113. scheduler parameter.
  114. .IP "-e" 10
  115. Trim fairshare tree to just the entities in the
  116. .I resource_group
  117. file. Unknown entities and their usage are deleted; as a result the unknown
  118. group has no usage and no children.
  119. .IP "-s <entity> <usage value>" 10
  120. Set
  121. .I entity's
  122. usage value to
  123. .I usage value.
  124. Editing a non-leaf entity is ignored. All non-leaf entity usage
  125. values are calculated each time you use the pbsfs command to make
  126. changes.
  127. .LP
  128. .SH Output Formats for pbsfs
  129. The pbsfs command can print output in three different formats:
  130. .B pbsfs -g <entity>
  131. .br
  132. Prints a detailed listing for the specified entity. Example:
  133. .br
  134. .B pbsfs -g pbsuser3
  135. fairshare entity: pbsuser3
  136. Resgroup: 20
  137. cresgroup: 22
  138. Shares: 40
  139. Percentage: 24.000000%
  140. fairshare_tree_usage: 0.832973
  141. usage: 1000 (cput)
  142. usage/perc: 4167
  143. Path from root:
  144. TREEROOT : 0 1201 / 1.000 = 1201
  145. group2 : 20 1001 / 0.600 = 1668
  146. pbsuser3 : 22 1000 / 0.240 = 4167
  147. .B pbsfs or pbsfs -p
  148. .br
  149. Prints the entire tree as a table, with data in columns. Example:
  150. .br
  151. .B pbsfs
  152. .br
  153. Fairshare usage units are in: cput
  154. .br
  155. TREEROOT\ : Grp:\ -1\ \ cgrp:\ \ 0 Shares:\ -1 Usage:\ 1201 Perc:\ 100.000%
  156. .br
  157. group2\ \ \ : Grp:\ \ 0\ \ cgrp:\ 20 Shares:\ 60 Usage:\ 1001 Perc:\ \ 60.000%
  158. .br
  159. pbsuser3\ : Grp:\ 20\ \ cgrp:\ 22 Shares:\ 40 Usage:\ 1000 Perc:\ \ 24.000%
  160. .br
  161. pbsuser2\ : Grp:\ 20\ \ cgrp:\ 21 Shares:\ 60 Usage:\ \ \ \ 1 Perc:\ \ 36.000%
  162. .br
  163. group1\ \ \ : Grp:\ \ 0\ \ cgrp:\ 10 Shares:\ 40 Usage:\ \ 201 Perc:\ \ 40.000%
  164. .br
  165. pbsuser1\ : Grp:\ 10\ \ cgrp:\ 12 Shares:\ 50 Usage:\ \ 100 Perc:\ \ 20.000%
  166. .br
  167. pbsuser\ \ : Grp:\ 10\ \ cgrp:\ 11 Shares:\ 50 Usage:\ \ 100 Perc:\ \ 20.000%
  168. .br
  169. unknown\ \ : Grp:\ \ 0\ \ cgrp:\ \ 1 Shares:\ \ 0 Usage:\ \ \ \ 1 Perc:\ \ \ 0.000%
  170. .B pbsfs -t
  171. .br
  172. Prints the entire tree as a tree, showing group-child relationships. Example:
  173. .br
  174. .B pbsfs -t
  175. TREEROOT(0)
  176. group2(20)
  177. pbsuser3(22)
  178. pbsuser2(21)
  179. group1(10)
  180. pbsuser1(12)
  181. pbsuser(11)
  182. unknown(1)
  183. .SH Data Output by pbsfs
  184. .IP "cresgroup or cgrp" 10
  185. Group ID of the entity.
  186. .IP "fairshare entity" 10
  187. The specified fairshare tree entity.
  188. .IP "fairshare usage units" 10
  189. The resource for which the scheduler accumulates usage for fairshare
  190. calculations. This defaults to
  191. .I cput
  192. (CPU seconds) but can be set in
  193. the scheduler's configuration file.
  194. .IP "fairshare_tree_usage" 10
  195. The entity's effective usage. See "Computing Effective
  196. Usage (fairshare_tree_usage)" in the PBS Professional
  197. Administrator's Guide.
  198. .IP "Path from root" 10
  199. The path from the root of the tree to the entity. The scheduler
  200. follows this path when comparing priority between two entities.
  201. .IP "Percentage or perc" 10
  202. The percentage of the shares in the tree allotted to the entity,
  203. computed as
  204. .I fairshare_perc.
  205. See "Computing Target Usage for Each
  206. Vertex (fairshare_perc)" in the PBS Professional
  207. Administrator's Guide.
  208. .IP "Resgroup or Grp" 10
  209. Group ID of the entity's parent group.
  210. .IP "Shares" 10
  211. The number of shares allotted to the entity.
  212. .IP "usage" 10
  213. The amount of usage by the entity.
  214. .IP "usage / perc" 10
  215. The value the scheduler uses to the pick which entity has priority
  216. over another. The smaller the number the higher the priority.
  217. .SH SEE ALSO
  218. The
  219. .B PBS Professional Administrator's Guide,
  220. pbs_sched(8B)