Jump to content
  • Announcements

    • admin

      PBS Forum Has Closed   06/12/17

      The PBS Works Support Forum is no longer active.  For PBS community-oriented questions and support, please join the discussion at http://community.pbspro.org.  Any new security advisories related to commercially-licensed products will be posted in the PBS User Area (https://secure.altair.com/UserArea/). 
Sign in to follow this  
jerryleo

How to alter the queue order of jobs

Recommended Posts

Hi,


 


It looked like that redefine the priority of the batch job via qalter did not give more help for re-arranging the queue order of jobs.


 


Wondering if there is a way to alter the queue order of jobs directly?


 


for example,  the queue order of jobs are like this


 


job1 


job2


job3


 


Wanted to re-arrange the order to


 


job3


job1


job2


 


Thanks for your time


 


Jerry


Share this post


Link to post
Share on other sites

Hi Jerry, the order in which jobs are run is heavily dependent on the scheduling policy in place.  Using the qorder command or changing the job's priority attribute may or may not make a difference.  I'd recommend forgetting about qorder, and let's just talk about job priority.  In order for the job's priority attribute to make a difference it must be included as a node_sort_key in the $PBS_HOME/sched_priv/sched_config file:


 


job_sort_key: "job_priority HIGH"

 

Job ordering can be a rather complex topic since it depends not only on job_sort_key, but also on whether or not the scheduling formula is in use, whether or not fair share is in use, differing queue priorities, etc.  The job_sort_key usually acts as a "tie breaker" for the previously mentioned scheduling features (that is, something like fair share picks the user whose job will run first, then job_sort_key picks which of his/her jobs runs first, though there may be other user's jobs with a higher priority attribute).

 

The default sched_config will not take the priority attribute into account at all though.  Please try adding the above job_sort_key (as either the primary key or a secondary, depending on what job_sort_key you may already be using, lower sort keys again act as "tie breakers" for higher ones), HUP the pbs_sched, and re-try your test.  If you do not get the expected result, it is likely that there are other factors at play, so please contact pbssupport@altair.com and include your test procedure, sched_config, and output of qmgr -c "p s".

 

Thanks.

 

-Scott

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×