Am 15.09.2012 um 00:54 schrieb David Erickson:

> On Fri, Sep 14, 2012 at 1:26 PM, Reuti <[email protected]> wrote:
>> Am 14.09.2012 um 20:17 schrieb David Erickson:
>> 
>>> Hi all-
>>> I've got a number of jobs queued up (with a few waiting on others) on
>>> a queue representing access to a physical hardware resource, thus the
>>> queue has just 1 slot: ie:
>>> 
>>> job-ID  prior   name       user         state submit/start at
>>> queue                          slots ja-task-ID
>>> -----------------------------------------------------------------------------------------------------------------
>>>  3995 0.75000 v120on793T derickso     r     09/14/2012 14:00:57
>>> all.q@cr02                         1
>>>   <snip>
>>>                              1
>>>  4020 0.00000 v120on793T derickso     hqw    09/14/2012 04:49:24
>>>                              1
>>> 
>>> There are a couple tasks I'd like to be able to accomplish, but am not
>>> sure how to:
>>> 
>>> 1) Halt the queue from running any more work AFTER the currently
>>> running job completes
>> 
>> Please check `man qmod`:
>> 
>> $ qmod -d foobar.q
> 
> Thanks, ya I just ran into this after the email was sent, sorry about that :)
> 
> 
> 
>>> 2) After halting the queue (1), insert job(s) that will run BEFORE all
>>> existing jobs when resuming the queue
>> 
>> This you have to force by:
>> 
>> a) requesting a resource which has a high urgency attached for these jobs
>> 
>> b) use `qalter -p N <job_id>` and attach a high positive value for the POSIX 
>> priority: `qalter -p 1024 <job_id>` and check the order in the list of 
>> waiting jobs. Maybe the weight for the POSIX priotity needs to be increased 
>> in the scheduler configuration.
>> 
>> Then you will have to enable the queue in question again. Depending on the 
>> scheduler setup you can also look into:
>> 
>> c) `qsub -js <job_share> ...`
>> 
>> d) `qalter -ot <override_tickets> <job_id>`
>> 
>> to change the order of jobs.
> 
> Thanks, I'll give these a try.  Also I saw the qmod -rj reschedule job
> command, If I added some new jobs that I wanted to run immediately,
> then rescheduled all the others, would it push them behind?  Ie does
> that command give them new job ids?

No.

-- Reuti


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to