Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2008, 02:02 PM
Jean-Pierre Radley
 
Posts: n/a
Default queuedefs

I've been asked to look in on an OSR 5.0.6 site where for the last few
days, /etc/cron dies and has to be restarted.

The site has several dozen entries in assorted crontab tables; someone
installed the following as /usr/lib/cron/queuedefs:

a.4j1n
b.2j2n90w
c.1j2n60w
d.1j2n60w
e.1j2n60w
f.1j2n60w
g.1j2n60w
h.1j2n60w
i.1j2n60w
j.1j2n60w
k.1j2n60w


I've pored over the queuedefs man page, but I do not really grasp the
implications of those entries. If I turn on cron logging, I do see far
more log entries like this one:

! c queue max run limit reached Wed Mar 5 18:39:00 2008
! rescheduling a cron job Wed Mar 5 18:39:00 2008

than entries reflecting actual launching of tasks.

--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-09-2008, 01:36 PM
Steve M. Fabac, Jr.
 
Posts: n/a
Default Re: queuedefs

Jean-Pierre Radley wrote:
> I've been asked to look in on an OSR 5.0.6 site where for the last few
> days, /etc/cron dies and has to be restarted.
>
> The site has several dozen entries in assorted crontab tables; someone
> installed the following as /usr/lib/cron/queuedefs:
>
> a.4j1n
> b.2j2n90w
> c.1j2n60w
> d.1j2n60w
> e.1j2n60w
> f.1j2n60w
> g.1j2n60w
> h.1j2n60w
> i.1j2n60w
> j.1j2n60w
> k.1j2n60w
>
>
> I've pored over the queuedefs man page, but I do not really grasp the
> implications of those entries. If I turn on cron logging, I do see far
> more log entries like this one:
>
> ! c queue max run limit reached Wed Mar 5 18:39:00 2008
> ! rescheduling a cron job Wed Mar 5 18:39:00 2008
>
> than entries reflecting actual launching of tasks.
>


JP,

I've used UNIX since 1973 at AT&T (Unix system III). I've been the
administrator on SCO Xenix systems since 1987. I've been administering
and working with SCO UNIX since 1995, I've never used AT or BATCH jobs.
I only say this to point out that with UNIX you can learn something
new every day!

From the batch man page:
-q letter
Places the specified job in a queue denoted by letter,
where letter is any lowercase letter from ``a'' to ``z''.
The queue letter is appended to the job identifier. The
following letters have special significance:
a
at queue
b
batch queue
c
cron queue
For more information on the use of different queues, see
the queuedefs(F) manual page.

I think that whoever set up the /usr/lib/cron/queuedefs file made a
mistake by adding the c.1j2n60w line. The 1j will likely override
the default of 100 jobs queued by cron. On my 5.0.7 the default
queuedefs only has the following:

# less /usr/lib/cron/queuedefs
a.4j1n
b.2j2n90w
/usr/lib/cron/queuedefs (END)

Then I got to thinking "why the d, e, f, g, h, etc... entry's"?

Googling queuedefs on c.u.s.m turns up:

> Newsgroups: comp.unix.sco.misc
> From: Mark <mark...@my-deja.com>
> Date: 2000/03/21
> Subject: Re: Batch Queues
> In article <38D7FE2A.2BF94...@aplawrence.com>,
>
> Tony Lawrence <t...@aplawrence.com> wrote:
>> Mark wrote:

>
>> > My company recently converted off of a Prime system to a IBM NetFinity
>> > box running SCO Openserver 5.0.5. The problem I'm now experiencing is
>> > with the batch queue. I currently only have the three standard queues,
>> > AT, BATCH & CRON. I would like to split my user community requests to
>> > multiple batch queues but I've been unsuccessful in finding out how I
>> > can do this. Can anyone offer some help in this endeavor??

>
>
>> Not sure I understand what you want- you do understand that
>> each user has their own separate queue for each of those?
>> And that the root user can put jobs out to be run by any
>> user? See http://aplawrence.com/Unixart/cron.html also.
>> --
>> Tony Lawrence (t...@aplawrence.com)

>
> Tony,
>
> What I'm trying to do is allow certain groups of users to send all of
> their batch requests to one queue while others go to another. We
> currently have all requests going to queue b. Unfortunately, if we get
> a couple of large reports running, the queue might be locked up for an
> extended period. Some other users then try to submit a small job that
> will kick out in 10 seconds or less and they get hung waiting for the
> queue to open up.
>
>
> I currently have my batch queue to allow for 2 jobs. I would prefer to
> have 4 queues each allowing for 1 job. The question is how do I get the
> submissions (this is transparent to the users) for a batch job to go to
> a queue other than the standard batch? All of my users batch requests
> go immediately to this queue and not to a queue for each user.
>
>
> Thanks for your help!
> Mark
>


So at minimum, I'd drop the 'c' line in your queuedefs.

And, I may be all wet.



--
Steve Fabac
S.M. Fabac & Associates
816/765-1670
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145