How to see array subjobs in showq


Problem: qstat -t provides a way to see all sub-elements of an array job, but how does showq allow you to see that?

 

Solution: showq --blocking will display individual job array sub-jobs.

1) You can use "showq --blocking" to see individual array jobs (including MHOST, i.e., the "mother superior" for the job)

Here's an example section of that output from a Moab 9.1 / Torque 6.1 test system:

active jobs------------------------
JOBID S PAR EFFIC XFACTOR Q USERNAME GROUP MHOST PROCS REMAINING STARTTIME
Moab.2[0] R tor 0.00 1.2 el adaptive adaptive builder-9 1 00:58:57 Wed Dec 21 17:00:32
Moab.2[1] R tor 0.00 1.2 el adaptive adaptive builder-9 1 00:58:57 Wed Dec 21 17:00:32
8[0] R tor ------ 1.0 el adaptive adaptive builder-9 1 00:59:39 Wed Dec 21 17:01:14
8[1]

 

2) There was one change in 9.1.0, per the "Differences" section of the release notes:

Moab Handles qsub Job Arrays the Same as msub
Moab now understands Torque job arrays the same as its own job arrays. Job arrays submitted to Torque will show up as job arrays in Moab.

This change explains why showq has parentheses after the "job array summary". Prior to 9.1, that only displayed for msub job array submissions, but now Torque arrays jobs display that way, too. The difference: when Moab migrates msub array jobs down to Torque, it does individual job submissions (instead of doing the equivalent of "qsub -t <range>", as it did in prior versions).

So this:

$ qsub -t 0-1 myjobscript.sh

Shows up like this: 

* qstat:
3[].builder-9.1.0-2016-dec-19

* showq:
3(2)

 

While this:

$ msub -t 0-1 myjobscript.sh

Results in:

* qstat:
4.builder-9.1.0-2016-dec-19.v
5.builder-9.1.0-2016-dec-19.v

* showq:
Moab.1(2)

Last update:
2017-05-18 02:23
Author:
Rick McKay
Revision:
1.4
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags