showq

Synopsis

showq [-b] [-g] [-l] [-c|-i|-r] [-n] [-o] [-p   partition] [-R   rsvid] [-u -v] [-v] [-w <CONSTRAINT>]

Overview

Displays information about active, eligible, blocked, and/or recently completed jobs. Since the resource manager is not actually scheduling jobs, the job ordering it displays is not valid. The showq command displays the actual job ordering under the Moab Workload Manager. When used without flags, this command displays all jobs in active, idle, and non-queued states.

Access

By default, this command can be run by any user. However, the -c, -i, and -r flags can only be used by level 1, 2, or 3 Moab administrators.

Flags

FlagDescription
display blocked jobs only
display details about recently completed jobs (see example, JOBCPURGETIME).
display grid job and system id's for all jobs.
display extended details about idle jobs. (see example)
display local/remote view. For use in a Grid environment, displays job usage of both local and remote compute resources.
displays normal showq output, but lists job names under JOBID
displays jobs in the active queue in the order specified (uses format showq -o <specifiedOrder>). Valid options include REMAINING, REVERSEREMAINING, JOB, USER, STATE, and STARTTIME. The default is REMAINING.
display only jobs assigned to the specified partition.
display extended details about active (running) jobs. (see example)
display only jobs which overlap the specified reservation.
Display specified user's jobs. Use showq -u -v to display the full username if it is truncated in normal -u output.
Display local and full resource manager job IDs as well as partitions. If specified with the '-i' option, will display job reservation time. The -v option displays all array subjobs. All showq commands without the -v option show just the master jobs in an array. The -v option can be used with any other showq option and always shows the full username in the output.
display only jobs associated with the specified constraint. Valid constraints include user, group, acct, class, and qos. (see showq -w example.)

Details

Beyond job information, the showqcommand will also report if the scheduler is stopped or paused or if a system reservation is in place. Further, the showq command will also report public system messages.

Examples

Example 1: Default Report

The output of this command is divided into three parts, Active Jobs, Eligible Jobs, and Blocked Jobs.
> showq
 
active jobs------------------------
JOBID            USERNAME           STATE           PROCS           REMAINING            STARTTIME           
 
12941               sartois    Running    25     2:44:11  Thu Sep  1 15:02:50
12954                tgates    Running     4     2:57:33  Thu Sep  1 15:02:52
12944                 eval1    Running    16     6:37:31  Thu Sep  1 15:02:50
12946                tgates    Running     2  1:05:57:31  Thu Sep  1 15:02:50
 
4 active jobs             47 of 48 processors active (97.92%)
                          32 of 32 nodes active      (100.00%)
 
eligible jobs----------------------
JOBID              USERNAME      STATE  PROCS     WCLIMIT            QUEUETIME
 
12956              cfosdyke       Idle     32     6:40:00  Thu Sep  1 15:02:50
12969              cfosdyke       Idle      4     6:40:00  Thu Sep  1 15:03:23
12939                 eval1       Idle     16     3:00:00  Thu Sep  1 15:02:50
12940               mwillis       Idle      2     3:00:00  Thu Sep  1 15:02:50
12947               mwillis       Idle      2     3:00:00  Thu Sep  1 15:02:50
12949                 eval1       Idle      2     3:00:00  Thu Sep  1 15:02:50
12953                tgates       Idle     10     4:26:40  Thu Sep  1 15:02:50
12955                 eval1       Idle      2     4:26:40  Thu Sep  1 15:02:50
12957                tgates       Idle     16     3:00:00  Thu Sep  1 15:02:50
12963                 eval1       Idle     16  1:06:00:00  Thu Sep  1 15:02:52
12964                tgates       Idle     16  1:00:00:00  Thu Sep  1 15:02:52
12937               allendr       Idle      9  1:00:00:00  Thu Sep  1 15:02:50
12962                aacker       Idle      6    00:26:40  Thu Sep  1 15:02:50
12968               tamaker       Idle      1     4:26:40  Thu Sep  1 15:02:52
 
14 eligible jobs
 
blocked jobs-----------------------
JOBID              USERNAME      STATE  PROCS     WCLIMIT            QUEUETIME
 
 
0 blocked jobs
 
Total jobs:  18

The fields are as follows:

ColumnDescription
job identifier.
User owning job.
Job State. Current batch state of the job.
Number of processors being used by the job.
For active jobs, the time the job has until it has reached its wall clock limit or for idle/blocked jobs, the amount of time requested by the job. Time specified in [DD:]HH:MM:SS notation.
Time job started running.

Active Jobs

Active jobs are those that are Running or Starting and consuming resources. Displayed are the job id*, the job's owner, and the job state. Also displayed are the number of processors allocated to the job, the amount of time remaining until the job completes (given in HH:MM:SS notation), and the time the job started. All active jobs are sorted in "Earliest Completion Time First" order.

Note

*Job id's may be marked with a single character to to specify the following conditions:

CharacterDescription
job violates usage limit
job is backfilled AND is preemptible
job is backfilled AND is NOT preemptible
job is NOT backfilled AND is preemptible
NoteDetailed active job information can be obtained using the '-r' flag.

Eligible Jobs

Eligible Jobs are those that are queued and eligible to be scheduled. They are all in the Idle job state and do not violate any fairness policies or have any job holds in place. The jobs in the Idle section display the same information as the Active Jobs section except that the wall clock CPULIMIT is specified rather than job time REMAINING, and job QUEUETIME is displayed rather than job STARTTIME. The jobs in this section are ordered by job priority. Jobs in this queue are considered eligible for both scheduling and backfilling.

NoteDetailed eligible job information can be obtained using the '-i' flag.

Blocked Jobs

Blocked jobs are those that are ineligible to be run or queued. Jobs listed here could be in a number of states for the following reasons:

StateDescription
Job violates a fairness policy. Use diagnose -qfor more information.
A user hold is in place.
An administrative or system hold is in place.
A scheduler batch hold is in place (used when the job cannot be run because the requested resources are not available in the system or because the resource manager has repeatedly failed in attempts to start the job).
A scheduler defer hold is in place (a temporary hold used when a job has been unable to start after a specified number of attempts. This hold is automatically removed after a short period of time).
Job is in the resource manager state NQ (indicating the job's controlling scheduling daemon in unavailable).

A summary of the job queue's status is provided at the end of the output.

Example 2: Detailed Active/Running Job Report

> showq -r
 
active jobs------------------------
JOBID               S  PAR  EFFIC  XFACTOR  Q      USER    GROUP        MHOST PROCS   REMAINING            STARTTIME
 
12941               R    3 100.00      1.0  -   sartois   Arches       G5-014 25     2:43:31  Thu Sep  1 15:02:50
12954               R    3 100.00      1.0 Hi    tgates   Arches       G5-016  4     2:56:54  Thu Sep  1 15:02:52
12944               R    2 100.00      1.0 De     eval1  RedRock     P690-016 16     6:36:51  Thu Sep  1 15:02:50
12946               R    3 100.00      1.0  -    tgates   Arches       G5-001  2  1:05:56:51  Thu Sep  1 15:02:50
 
4 active jobs             47 of 48 processors active (97.92%)
                          32 of 32 nodes active      (100.00%)
 
Total jobs:  4

The fields are as follows:

ColumnDescription
Name of active job.
Job State. Either "R" for Running or "S" for Starting.
Partition in which job is running.
CPU efficiency of job.
Current expansion factor of job, where XFactor = (QueueTime + WallClockLimit) / WallClockLimit
Quality Of Service specified for job.
User owning job.
Primary group of job owner.
Master Host running primary task of job.
Number of processors being used by the job.
Time the job has until it has reached its wall clock limit. Time specified in HH:MM:SS notation.
Time job started running.

After displaying the running jobs, a summary is provided indicating the number of jobs, the number of allocated processors, and the system utilization.

ColumnDescription
Name of active job.
Job State. Either "R" for Running or "S" for Starting.
Completion Code. The return/completion code given when a job completes. (Only applicable to completed jobs.)
Partition in which job is running.
CPU efficiency of job.
Current expansion factor of job, where XFactor = (QueueTime + WallClockLimit) / WallClockLimit
Quality Of Service specified for job.
User owning job.
Primary group of job owner.
Number of processors being used by the job.
Time the job has until it has reached its wall clock limit. Time specified in HH:MM:SS notation.
Time job started running.
> showq -i
 
eligible jobs----------------------
JOBID                 PRIORITY  XFACTOR  Q      USER    GROUP  PROCS     WCLIMIT     CLASS      SYSTEMQUEUETIME
 
12956*                      20      1.0  -  cfosdyke  RedRock     32     6:40:00     batch  Thu Sep  1 15:02:50
12969*                      19      1.0  -  cfosdyke  RedRock      4     6:40:00     batch  Thu Sep  1 15:03:23
12939                       16      1.0  -     eval1  RedRock     16     3:00:00     batch  Thu Sep  1 15:02:50
12940                       16      1.0  -   mwillis   Arches      2     3:00:00     batch  Thu Sep  1 15:02:50
12947                       16      1.0  -   mwillis   Arches      2     3:00:00     batch  Thu Sep  1 15:02:50
12949                       16      1.0  -     eval1  RedRock      2     3:00:00     batch  Thu Sep  1 15:02:50
12953                       16      1.0  -    tgates   Arches     10     4:26:40     batch  Thu Sep  1 15:02:50
12955                       16      1.0  -     eval1  RedRock      2     4:26:40     batch  Thu Sep  1 15:02:50
12957                       16      1.0  -    tgates   Arches     16     3:00:00     batch  Thu Sep  1 15:02:50
12963                       16      1.0  -     eval1  RedRock     16  1:06:00:00     batch  Thu Sep  1 15:02:52
12964                       16      1.0  -    tgates   Arches     16  1:00:00:00     batch  Thu Sep  1 15:02:52
12937                        1      1.0  -   allendr  RedRock      9  1:00:00:00     batch  Thu Sep  1 15:02:50
12962                        1      1.2  -    aacker  RedRock      6    00:26:40     batch  Thu Sep  1 15:02:50
12968                        1      1.0  -   tamaker  RedRock      1     4:26:40     batch  Thu Sep  1 15:02:52
 
14 eligible jobs
 
Total jobs:  14

The fields are as follows:

ColumnDescription
Name of job.
Calculated job priority.
Current expansion factor of job, where XFactor = (QueueTime + WallClockLimit) / WallClockLimit
Quality Of Service specified for job.
User owning job.
Primary group of job owner.
Minimum number of processors required to run job.
Wall clock limit specified for job. Time specified in HH:MM:SS notation.
Class requested by job.
Time job was admitted into the system queue.
NoteAn asterisk at the end of a job (job 12956* in this example) indicates that the job has a job reservation created for it. The details of this reservation can be displayed using the checkjob command.

Example 4: Detailed Completed Job Report

> showq -c
completed jobs------------------------
JOBID               S CCODE  PAR  EFFIC  XFACTOR  Q  USERNAME    GROUP        MHOST PROC    WALLTIME            STARTTIME
13098               C     0  bas  93.17      1.0  -   sartois   Arches       G5-014    25    2:43:31  Thu Sep  1 15:02:50
13102               C     0  bas  99.55      2.2 Hi    tgates   Arches       G5-016     4    2:56:54  Thu Sep  1 15:02:52
13103               C     2  tes  99.30      2.9 De     eval1  RedRock     P690-016    16    6:36:51  Thu Sep  1 15:02:50
13115               C     0  tes  97.04      1.0  -    tgates   Arches       G5-001     2 1:05:56:51  Thu Sep  1 15:02:50
3 completed jobs

The fields are as follows:

ColumnDescription
job id for completed job.
Job State. Either "C" for Completed or "V" for Vacated.
Completion code reported by the job.
Partition in which job ran.
CPU efficiency of job.
Expansion factor of job, where XFactor = (QueueTime + WallClockLimit) / WallClockLimit
Quality of Service specified for job.
User owning job.
Primary group of job owner.
Master Host which ran the primary task of job.
Number of processors being used by the job.
Wallclock time used by the job. Time specified in [DD:]HH:MM:SS notation.
Time job started running.

After displaying the active jobs, a summary is provided indicating the number of jobs, the number of allocated processors, and the system utilization.

NoteIf the DISPLAYFLAGS parameter is set to ACCOUNTCENTRIC, job group information will be replaced with job account information.

Example 5: Filtered Job Report

Show only jobs associated with user john and class benchmark
> showq -w class=benchmark -w user=john
...

Example 6: Job Array

Job arrays show the name of the job array and then in parenthesis, the number of sub-jobs in the job array that are in the specified state.

> showq

active jobs------------------------
JOBID              USERNAME      STATE PROCS   REMAINING            STARTTIME

Moab.1(14)          aesplin    Running    14    00:59:41  Fri May 27 14:58:57

14 active jobs            14 of 14 processors in use by local jobs (100.00%)
2 of 2 nodes active      (100.00%)

eligible jobs----------------------
JOBID              USERNAME      STATE PROCS     WCLIMIT            QUEUETIME

Moab.1(4)           aesplin       Idle     4     1:00:00  Fri May 27 14:58:52

4 eligible jobs   

blocked jobs-----------------------
JOBID              USERNAME      STATE PROCS     WCLIMIT            QUEUETIME

Moab.1(2)           aesplin    Blocked     2     1:00:00  Fri May 27 14:58:52

2 blocked jobs   

Total jobs:  20

 

Example 7: showq -u and showq -u -v

Use showq -u to display a specific user's jobs. Use showq -u -v if the username is truncated in the normal output.

Here is a showq -u output with a long username:

bchristiansen$ showq -u bchristiansen

active jobs------------------------
JOBID              USERNAME      STATE PROCS   REMAINING            STARTTIME

10944              bchristi    Running     0    00:09:37  Wed Oct 12 16:05:04
10945              bchristi    Running     0    00:09:46  Wed Oct 12 16:05:13

2 active jobs             0 of 360 processors in use by local jobs (0.00%)
5 of 17 nodes active      (29.41%)

eligible jobs----------------------
JOBID              USERNAME      STATE PROCS     WCLIMIT            QUEUETIME


0 eligible jobs   

blocked jobs-----------------------
JOBID              USERNAME      STATE PROCS     WCLIMIT            QUEUETIME


0 blocked jobs   

Total jobs:  2

Here is a showq -u -v output with the same long username:

bchristiansen$ showq -u bchristiansen -v

active jobs------------------------
JOBID                       USERNAME      STATE PROCS   REMAINING            STARTTIME            PARTITION

10944/10944.keche.ac   bchristiansen    Running     0    00:05:09  Wed Oct 12 16:05:04               SHARED
10945/10945.keche.ac   bchristiansen    Running     0    00:05:18  Wed Oct 12 16:05:13               SHARED

2 active jobs             0 of 360 processors in use by local jobs (0.00%)
1 of 17 nodes active      (5.88%)

eligible jobs----------------------
JOBID                       USERNAME      STATE PROCS     WCLIMIT            QUEUETIME            PARTITION


0 eligible jobs   

locked jobs-----------------------
JOBID                       USERNAME      STATE PROCS     WCLIMIT            QUEUETIME            PARTITION


0 blocked jobs   

Total jobs:  2

See Also

Copyright © 2012 Adaptive Computing Enterprises, Inc.®