Setting queue level nice values

Posted by chris Tue, 01 Nov 2005 00:45:00 GMT

A user recently asked:

... I know it is possible to submit the jobs with nice in each submit sge script but is it possible to fix a nice value by queue ?

Reuti replied with the quick & simple procedure:

  1. Use "qconf -mq " to set the cluster queue "priority" parameter to the nice value you wish to use
  2. Use "qconf -msconf" to make sure "reprioritize_interval=0:0:0"
  3. Use "qconf -mconf" to make sure "reprioritize=0"

A quick test to verify the commands, setting priority=15 and sure enough the test.sh script was running with an altered nice level:

USER  PID   TIME    UID  PPID CPU   NI  COMMAND
dag   6843  7:12PM  501  6679  0    31  - sge_shepherd-5 -bg
dag   6844  7:12PM  501  6843  0    16  -sh /opt/sge/default/spool/chrisdag/job_scripts/5