[GE users] job time limit
reuti at staff.uni-marburg.de
Tue Feb 10 10:28:02 GMT 2009
Am 10.02.2009 um 10:38 schrieb adary:
> Hi everyone,
> Is there a way to impose a hard time limit on a job even though the
> queue where it runs is configured to give :
> s_rt 720:00:00
> h_rt 720:00:00
> The reason for this is that I have certain jobs that need to run
> under 4 hours for instance, and if they run over 4 hours they got
> stuck, will never finish and need to be killed.
> The main problem is that there are thousands of those jobs each day
> and its not so easy to find them manually.
you can request a lower limit for certain jobs with:
$ qsub -l h_rt=4:0:0 ...
Once the jobs are running, this can't be changed. As long as they are
waiting it can be adjusted (which would also work for rescheduled job
in case they are already running).
In 6.2u2 you could adjust it in the JSV (job submission verifier)
according to any algorithm you like. If it's just one user (or a
certain directory where the jobs are submitted from), you could put
right now a "~/.sge_request" in his home with a line "-l h_rt=4:0:0"
or in the specific directory (see`man sge_request`).
> Yuval Adar, Marvell Israel - Senior UNIX System Administrator
> Park Azorim, Kyriat Arie
> Petah Tikva, 49527, Israel
> Email: adary at marvell.com
> Office: +972.3.9703958 - OnNet: 705.3958
> Fax: +972.3.9704999
> Mobile: +972.54.2493958
> Web site: http://www.marvell.com
> This message may contain confidential, proprietary or legally
> privileged information. The information is intended only for the
> use of the individual or entity named above. If the reader of this
> message is not the intended recipient, you are hereby notified that
> any dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in
> error, please notify us immediately by telephone or by e-mail and
> delete the message from your computer.
To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
More information about the gridengine-users