qrun.8B 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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 qrun 8B "19 February 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B qrun
  39. \- run a PBS batch job now
  40. .SH SYNOPSIS
  41. .B qrun
  42. [-a] [-H <vnode specification>] <job ID> [<job ID> ...]
  43. .br
  44. .B qrun
  45. [-a] [-H - ] <job ID> [<job ID> ...]
  46. .br
  47. .B qrun
  48. --version
  49. .SH DESCRIPTION
  50. Forces a job to run, regardless of scheduling position or resource requirements.
  51. The
  52. .B qrun
  53. command can be used on jobs, subjobs, or ranges of subjobs, but
  54. not on job arrays. When it is used on a range of subjobs, the
  55. non-running subjobs in that range are run.
  56. When preemption is enabled, the scheduler preempts other jobs in order
  57. to run this job. Running a job via
  58. .B qrun
  59. gives the job higher preemption priority than any of the priorities defined
  60. in the
  61. .I preempt_prio
  62. scheduler parameter.
  63. .B Required Privilege
  64. .br
  65. In order to execute
  66. .B qrun,
  67. you must have PBS Operator or Manager privilege.
  68. .B Caveats for qrun
  69. .RS 3
  70. The job is run without respect for limits, primetime, or dedicated time.
  71. If you use a
  72. .B -H vnode_specification
  73. option to run a job, but specify insufficient vnodes or resources, the
  74. job may not run correctly. Avoid using this option unless you are
  75. sure.
  76. If you don't use the
  77. .I -H
  78. option, the job must be in the
  79. .I Queued
  80. state and reside in an execution queue.
  81. If you do use the
  82. .I -H
  83. option, the job must be in the
  84. .I Queued
  85. or
  86. .I Suspended
  87. state and reside in an execution queue.
  88. If you use the
  89. .I -H
  90. option, all schedulers are bypassed, and partition boundaries are ignored.
  91. The
  92. .B qrun
  93. command cannot be used on a job that is in the process of provisioning.
  94. .RE
  95. .SH OPTIONS
  96. .IP "-a" 6
  97. The
  98. .B qrun
  99. command exits before the job actually starts execution.
  100. .IP "(no -H option)" 6
  101. The job is run immediately regardless of scheduling policy as long as
  102. the following are true:
  103. .RS 9
  104. The queue in which the job resides is an execution queue.
  105. Either the resources required by the job are available, or preemption
  106. is enabled and the required resources can be made available by
  107. preempting jobs that are running.
  108. .RE
  109. .IP "(with -H option)" 6
  110. Do
  111. .B NOT
  112. use this option unless you know exactly what you are doing.
  113. With the -H option, all scheduling policies are bypassed and the job
  114. is run directly. The job is run immediately on the named or
  115. previously assigned vnodes, regardless of current usage on those
  116. vnodes or which scheduler manages the vnodes,
  117. with the exception of vnode state. The job is not run and
  118. the qrun request is rejected if any named vnode is down,
  119. already allocated exclusively, or would need to be allocated
  120. exclusively and another job is already running on the vnode. The job
  121. is run if the vnode is
  122. .I offline.
  123. The
  124. .I -H
  125. option runs jobs that are queued or suspended.
  126. If the
  127. .B qrun -H
  128. command is used on a job that requests an AOE, and that AOE is not instantiated
  129. on those vnodes, the vnodes are provisioned with the AOE.
  130. If the job requests an AOE, and that AOE is not available on the
  131. specified vnodes, the job is held.
  132. .RS 6
  133. .IP "-H <vnode specification without resources>" 3
  134. The
  135. .I vnode specification without resources
  136. has this format:
  137. .br
  138. .I \ \ \ (<vchunk>)[+(<vchunk>) ...]
  139. .br
  140. where
  141. .I vchunk
  142. has the format
  143. .br
  144. .I \ \ \ <vnode name>[+<vnode name> ...]
  145. .br
  146. Example: -H (VnodeA+VnodeB)+(VnodeC)
  147. PBS applies one requested chunk from the job's selection directive in round-robin
  148. fashion to each
  149. .I vchunk
  150. in the list. Each
  151. .I vchunk
  152. must be sufficient to run the job's corresponding chunk, otherwise
  153. the job may not execute correctly.
  154. .RE
  155. .RS 6
  156. .IP "-H <vnode specification with resources>" 3
  157. The
  158. .I vnode specification with resources
  159. has this format:
  160. .br
  161. .I \ \ \ (<vchunk>)[+(<vchunk>) ...]
  162. .br
  163. where
  164. .I vchunk
  165. has the format
  166. .IP "" 6
  167. .I <vnode name>:<vnode resources>[+<vnode name>:<vnode resources> ...]
  168. .LP
  169. .RS 3
  170. and where
  171. .I vnode resources
  172. has the format
  173. .RS 3
  174. <resource name>=<value>[:<resource name>=<value> ...]
  175. .RE
  176. .IP "Example:" 3
  177. -H (VnodeA:mem=100kb:ncpus=1)+ (VnodeB:mem=100kb:ncpus=2+ VnodeC:mem=100kb)
  178. .LP
  179. PBS creates a new selection directive from the
  180. .I vnode specification with resources,
  181. using it instead of the original specification from the user.
  182. Any single resource specification results in the
  183. job's original selection directive being ignored. Each
  184. .I vchunk
  185. must be sufficient to run the job's corresponding chunk, otherwise
  186. the job may not execute correctly.
  187. If the job being run requests
  188. .I -l place=exclhost,
  189. take extra care to satisfy the
  190. .I exclhost
  191. request. Make sure that if any vnodes are from a multi-vnoded host,
  192. all vnodes from that host are allocated. Otherwise those vnodes can
  193. be allocated to other jobs.
  194. .RE
  195. .IP "-H -" 3
  196. Runs the job on the set of resources to which it is already assigned.
  197. You can run a job on the set of resources already assigned to the juob, without having to list the resources, by using the
  198. .I -
  199. (dash) argument to the
  200. .I -H
  201. option.
  202. .RE
  203. .IP "--version" 6
  204. The
  205. .B qrun
  206. command returns its PBS version information and exits.
  207. This option can only be used alone.
  208. .SH OPERANDS
  209. .IP "Job ID" 6
  210. The
  211. .B qrun
  212. command accepts a list of job IDs, of the form
  213. .I \ \ \ <sequence number>[.<server name>][@<server name>]
  214. .br
  215. .I \ \ \ <sequence number>[<index>][.<server name>][@<server name>]
  216. .IP " " 9
  217. .I <sequence number>[<index start>-<index end>][.<server name>][@<server name>]
  218. .IP " " 6
  219. Note that some shells require that you enclose a job array identifier in
  220. double quotes.
  221. .IP "vnode specification" 6
  222. The
  223. .I vnode specification without resources
  224. has this format:
  225. .IP "" 9
  226. .I (<vchunk>)[+(<vchunk>) ...]
  227. .br
  228. where
  229. .I vchunk
  230. has the format
  231. .br
  232. .I <vnode name>[+<vnode name> ...]
  233. .br
  234. Example: -H (VnodeA+VnodeB)+(VnodeC)
  235. .LP
  236. .IP "" 6
  237. The
  238. .I vnode specification with resources
  239. has this format:
  240. .IP "" 9
  241. .I (<vchunk>)[+(<vchunk>) ...]
  242. .br
  243. where
  244. .I vchunk
  245. has the format
  246. .br
  247. .I <vnode name>:<vnode resources>[+<vnode name>:<vnode resources> ...]
  248. .br
  249. and where
  250. .I vnode resources
  251. has the format
  252. .br
  253. .I <resource name>=<value>[:<resource name>=<value> ...]
  254. Example: -H (VnodeA:mem=100kb:ncpus=1) + (VnodeB:mem=100kb:ncpus=2 + VnodeC:mem=100kb)
  255. .IP "" 6
  256. A
  257. .I vnode name
  258. is the name of the vnode, not the name of the host.
  259. .SH STANDARD ERROR
  260. The
  261. .B qrun
  262. command writes a diagnostic message to standard error for
  263. each error occurrence.
  264. .SH EXIT STATUS
  265. .IP Zero 6
  266. On success
  267. .IP "Greater than zero" 6
  268. If the
  269. .B qrun
  270. command fails to process any operand
  271. .SH SEE ALSO
  272. The
  273. .I PBS Professional Administrator's Guide,
  274. .br
  275. qsub(1B),
  276. qmgr(8B),
  277. pbs_runjob(3B)