This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:torque_administrator_and_operator_commands [2024/03/01 11:50] mjm519 |
tutorial:torque_administrator_and_operator_commands [2024/04/10 14:08] (current) mjm519 [Commands:] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Common Commands | + | ====== |
+ | Information about command usage can be obtained using the links below or via the man or info commands. | ||
+ | Example: | ||
+ | < | ||
+ | info qdel | ||
+ | |||
+ | man qdel | ||
+ | |||
+ | </ | ||
===== Commands: ===== | ===== Commands: ===== | ||
- | == [[http:// | + | == qmgr == |
- | This is the main application used to manage PBS Torque. This is used to create queues, modify queue settings, and print the configuration. | + | [[http:// |
< | < | ||
- | mjm519@polyp1:~$ qmgr -c "print queue batch" | + | user@polyp1:~$ qmgr -c "print queue batch" |
- | mjm519@polyp1:~$ qmgr -c "p q batch" | + | user@polyp1:~$ qmgr -c "p q batch" |
# | # | ||
# Create queues and set their attributes. | # Create queues and set their attributes. | ||
Line 31: | Line 39: | ||
== qstat == | == qstat == | ||
+ | [[http:// | ||
+ | |||
+ | < | ||
+ | mjm519@polyp1: | ||
+ | |||
+ | server: polyp1 | ||
+ | |||
+ | Queue Memory CPU Time Walltime Node Run Que Lm State | ||
+ | ---------------- ------ -------- -------- ---- --- --- -- ----- | ||
+ | MOSEK -- -- | ||
+ | AMPL | ||
+ | long | ||
+ | gpu -- -- | ||
+ | verylong | ||
+ | medium | ||
+ | coraverylong | ||
+ | special | ||
+ | batch -- -- 01: | ||
+ | short -- -- 02: | ||
+ | urgent | ||
+ | background | ||
+ | mediumlong | ||
+ | ----- ----- | ||
+ | | ||
+ | mjm519@polyp1: | ||
+ | Queue Max Tot | ||
+ | ---------------- | ||
+ | MOSEK | ||
+ | AMPL | ||
+ | long 30 0 | ||
+ | gpu 4 0 | ||
+ | verylong | ||
+ | medium | ||
+ | coraverylong | ||
+ | special | ||
+ | batch 0 0 | ||
+ | short 0 0 | ||
+ | urgent | ||
+ | background | ||
+ | mediumlong | ||
+ | </ | ||
== qalter == | == qalter == | ||
+ | [[http:// | ||
+ | |||
+ | < | ||
+ | qalter <job number> <change to the queued job> | ||
+ | |||
+ | The line below changes the node specification for job id 1398668. Original job submission did not specify a node, this specifies a node with the same ppn (processors per node) | ||
+ | |||
+ | qalter 1398668 -l nodes=polyp14: | ||
+ | |||
+ | </ | ||
== qdel == | == qdel == | ||
+ | [[http:// | ||
+ | < | ||
+ | qdel <job id> | ||
+ | qdel 1186460 | ||
+ | </ | ||
== qhold == | == qhold == | ||
+ | [[http:// | ||
+ | Place non-running job in a state so it will not run. If the job is running, and checkpointing is not enabled the job will terminate. | ||
== qmove == | == qmove == | ||
+ | [[http:// | ||
+ | Move a submitted job to another queue. | ||
== qrun == | == qrun == | ||
+ | [[http:// | ||
+ | Command used to take a non-running job and make it run. When I use this, I look at running jobs and then use the qalter command to specify the node I want the job to run on (based on available resources). | ||
== qstart == | == qstart == | ||
+ | [[https:// | ||
== qstop == | == qstop == | ||
+ | [[https:// | ||
+ | |||
+ | == qenable == | ||
+ | [[https:// | ||
+ | |||
+ | == qdisable == | ||
+ | [[https:// | ||
+ | |||
+ | == pbsnodes == | ||
+ | [[https:// | ||
+ | This command can be use to enable and disable nodes in the queuing system. | ||
+ | < | ||
+ | manager@polyp1: | ||
+ | polyp5 | ||
+ | polyp14 | ||
+ | polyp15 | ||
+ | polyp30 | ||
+ | |||
+ | Take a node offline: | ||
+ | manager@polyp1: | ||
+ | |||
+ | Put a node back online: | ||
+ | manager@polyp1: | ||
+ | |||
+ | Current Normal Output from pbsnodes -l: | ||
+ | manager@polyp1: | ||
+ | polyp5 | ||
+ | polyp30 | ||
+ | </ | ||
+ | |||