[torquedev] qorder command failure

Mariusz Mamoński mamonski at man.poznan.pl
Sun Oct 23 03:29:10 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).

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.

>
>
> Is there any solution to get the expected result?
>
> Thanks in advance.
>
>
>
> --
>
> Thanks & Regards,
> Jayavant Ningoji Patil
>
> _______________________________________________
> torquedev mailing list
> torquedev at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torquedev
>
>


BR,
-- 
Mariusz


More information about the torquedev mailing list