[torquedev] qorder command failure

Jayavant Patil jayavant.patil82 at gmail.com
Mon Oct 31 03:24:20 MDT 2011


On 19 October 2011 11:49, Jayavant Patil <jayavant.patil82 at gmail.com> wrote:
>> Hi,
>>
>> ??? I have experimented with both qmove and qorder commands. Internally
>> qorder uses pbs_movejob function and qorder is just exchanging two jobs
>> within two different queues. I mean to say it is not really swapping two
>> jobs and this can be done with the help of qmove.
>>
>> ??? My question is what is there a separate command 'qorder' if 'qmove'
does
>> the same function? qorder doesn't behave as per what its man page says.
>>
>> Scenario:
>> $qstat
>> Job id??????????????????? Name???????????? User??????????? Time Use S
Queue
>> ------------------------- ---------------- --------------- -------- -
-----
>> 263.n0???????????????????? STDIN??????????? root??????????? 00:00:00 C
>> abc
>> 264.n0???????????????????? STDIN??????????? root??????????? 00:00:00 C
>> batch
>> 265.n0???????????????????? STDIN??????????? root?????????????????? 0 R
>> batch
>> 266.n0???????????????????? STDIN??????????? root?????????????????? 0 R
>> batch
>> 267.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 268.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 269.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 270.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 271.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
abc
>>
>> I want to exchange 268 with 271.
>>
>> $qorder 268 271
>>$qstat
>> Job id??????????????????? Name???????????? User??????????? Time Use S
Queue
>> ------------------------- ---------------- --------------- -------- -
-----
>> 264.n0???????????????????? STDIN??????????? root??????????? 00:00:00 C
>> batch
>> 265.n0???????????????????? STDIN??????????? root??????????? 00:00:00 R
>>batch
>> 266.n0???????????????????? STDIN??????????? root??????????? 00:00:00 R
>> batch
>> 267.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 268.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> abc
>> 269.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 270.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 271.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>>
>> but actually expected result is as follows:
>> Job id??????????????????? Name???????????? User??????????? Time Use S
Queue
>> ------------------------- ---------------- --------------- -------- -
-----
>> 264.n0???????????????????? STDIN??????????? root??????????? 00:00:00 C
>> batch
>> 265.n0???????????????????? STDIN??????????? root??????????? 00:00:00 R
>> batch
>> 266.n0???????????????????? STDIN??????????? root??????????? 00:00:00 R
>> batch
>> 267.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 271.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
abc
>>
>> 269.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
>> batch
>> 270.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
batch
>> 268.n0???????????????????? STDIN??????????? root?????????????????? 0 Q
batch
>>
>>
>> Before and after 'qorder', I checked the output of 'qstat -f 268' and
'qstat
>> -f 271,' the only difference was with queue, qtime and queue_rank and
qmove
>> does the same job.
>> ( I have tried here with the two jobs(268 & 271) which reside in two
>> different queues. I also tried with two jobs within the same queue but
>> doesn't show desired output).

On Sun, 23 Oct 2011 11:29:10 +0200 Mariusz Mamo?ski <mamonski at man.poznan.pl>
wrote:

>I also tried with a two jobs that are in the same queue, and it seems to
work:


>[mmamonski at grass1 ~]$ qstat
>Job id                    Name             User            Time Use S Queue
>------------------------- ---------------- --------------- -------- - -----
>113053.grass1             STDIN            mmamonski              0 R
>batch
>113054.grass1             STDIN            mmamonski              0 Q
>batch
>113055.grass1             STDIN            mmamonski              0 Q
>batch
>[mmamonski at grass1 ~]$ qorder 113054 113055
>[mmamonski at grass1 ~]$ qstat
>Job id                    Name             User            Time Use S Queue
>------------------------- ---------------- --------------- -------- - -----
>113053.grass1             STDIN            mmamonski              0 R
>batch
>113055.grass1             STDIN            mmamonski              0 Q
>batch
>113054.grass1             STDIN            mmamonski              0 Q batch

>Tested using Torque  2.3.6 and Maui 3.2.6p21 but i'm using very basic
>Maui configuration.

Hi,

  I also tried with Torque  2.3.6 and Maui 3.2.6p21. It is working fine but
it doesn't have an effect on showq job list that is with Maui. The
following scenario will explain this.

[root at n0 bin]# qstat
Job id                    Name             User            Time Use S Queue
------------------------- ---------------- --------------- -------- - -----
4.n0                      STDIN            root            00:00:00 R
batch
3.n0                      STDIN            root            00:00:00 R
batch
11.n0                     STDIN            root                   0 Q
batch
6.n0                      STDIN            root            00:00:00 R
batch
9.n0                      STDIN            root                   0 Q
abc
10.n0                     STDIN            root                   0 Q
abc
8.n0                      STDIN            root            00:00:00 R
abc

   [root at n0 bin]# showq
ACTIVE JOBS--------------------
JOBNAME            USERNAME      STATE  PROC   REMAINING
STARTTIME

4                      root    Running     2    00:15:29  Mon Oct 31
13:43:33
3                      root    Running     2    00:15:29  Mon Oct 31
13:43:33
6                      root    Running     2    00:19:59  Mon Oct 31
13:48:03
8                      root    Running     2    00:41:22  Mon Oct 31
14:09:26

     4 Active Jobs       8 of    8 Processors Active (100.00%)
                         1 of    1 Nodes Active      (100.00%)

IDLE JOBS----------------------
JOBNAME            USERNAME      STATE  PROC     WCLIMIT
QUEUETIME

9                      root       Idle     2     1:00:00  Mon Oct 31
13:51:48
10                     root       Idle     2     1:00:00  Mon Oct 31
13:51:53
11                     root       Idle     2     1:00:00  Mon Oct 31
13:52:04

3 Idle Jobs

BLOCKED JOBS----------------
JOBNAME            USERNAME      STATE  PROC     WCLIMIT
QUEUETIME


Total Jobs: 7   Active Jobs: 4   Idle Jobs: 3   Blocked Jobs: 0

Note that job 11 is up in qstat job list but it is down in showq list. My
question is what is the use of qorder command then? Can you give me some
uses of qorder command? or what is the need of qorder command to the job
owner or to admin?

Thanks a lot.


>> Is there any solution to get the expected result?

-- 

Thanks & Regards,
Jayavant Ningoji Patil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20111031/18b1a4f0/attachment-0001.html 


More information about the torquedev mailing list