Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!usc!sdsu!ucsd!helios.ee.lbl.gov!me10.lbl.gov!milburn From: milburn@me10.lbl.gov (John Milburn) Newsgroups: comp.sys.hp Subject: Re: batch and /usr/lib/cron/queuedefs Message-ID: <4543@helios.ee.lbl.gov> Date: 2 Jan 90 21:54:19 GMT References: <1150014@misty.boeing.com> Sender: usenet@helios.ee.lbl.gov Reply-To: JEMilburn@lbl.gov (John Milburn) Organization: Lawrence Berkeley Laboratory, Berkeley, CA Lines: 68 X-Local-Date: 2 Jan 90 13:54:19 PST From the hp-ux 7.0 distribution: QUEUEDEFS(4) QUEUEDEFS(4) NAME queuedefs - queue description file for at(1), batch(1), and crontab(1) SYNOPSIS /usr/lib/cron/queuedefs DESCRIPTION The queuedefs file describes the characteristics of the queues managed by cron(1M). Each non-comment line in this file describes one queue. The format of the lines are as follows: q.[njobj][nicen][nwaitw] The fields in this line are: q The name of the queue, such that a is the default queue for jobs started by at(1), b is the queue for jobs started by batch(1), and c is the queue for jobs run from a crontab(1) file. Queue names d through y designate user defined queues. njob The maximum number of jobs that can be run simultaneously in that queue. The default value is 100. nice The nice(1) value to give to all jobs in that queue that are not run with a user ID of super- user. The default value is 2. nwait The number of seconds to wait before rescheduling a job that was deferred because more than njob jobs were running in that job's queue, or because more than 25 jobs were running in all the queues. The default value is 60. EXAMPLES The following queuedefs file: a.4j1n b.2j2n90w specifies that the a queue, for at(1) jobs, can have up to 4 jobs running simultaneously, and that those jobs will be run with a nice(1) value of 1. As no nwait value was given, if a job cannot be run because too many other jobs are running, cron(1M) will wait 60 seconds before trying again to run it. The b queue, for batch(1) jobs, can have up to 2 jobs running simultaneously. Those jobs will be run with a nice(1) value of 2. If a job cannot be run because too many other jobs are running, cron(1M) will wait 90 seconds before trying again to run it. All other queues can have up to 100 jobs running simultaneously, they will be run with a nice(1) value of 2, and if a job cannot be run because too many other jobs are running, cron(1M) will wait 60 seconds before trying again to run it. SEE ALSO at(1), batch(1), nice(1), crontab(1), cron(1M), proto(4) John Milburn - Advanced Light Source - Lawrence Berkeley Laboratory INTERNET: JEMilburn@lbl.gov BITNET: JEMilburn@LBL.bitnet UUCP: {...}!ucbvax!lbl.gov!JEMilburn SnailMail: 1 Cyclotron Road 46-161 Berkeley, Ca. 94720 Ph: (415) 486-6969