Hi patrik,
thx for fast reply. i am aware of the problems (did not think about
db but else) priority etc will be lost, no real change of preserving
that.
My idea is to set a HIGH_WATER_MARK. If that is reached, you can
disable the the scanning. forcing the system to handle the already
arrived jobs. ppl with sudden floods of jobs should set this.
our box has no problems with a few hundred jobs so i would set it to
500 or so to allow a fast processing.
I have still NO idea why this happends but atleast the pile afterwards
get handled faster.
regards,
walter
ps: you can also use a LOW_WATER_MARK to enable that scan again but i
thing its not needed ,yet.
A possible improvement is to have one process SCAN the directory
and then cache the 'fstat' information and the 'control file'
contents. The problem here is that each time a job is processed
(added to the queue, remove from the queue, etc.), this file would need
to be updated.
Now, if this is of little or no concern to you, then there
is a very quick fix.
In the lpd_jobs.c file, look for the code that checks to see if
a SIGUSR1 signal has arrived. This sets a 'rescan' flag.
Comment out the code that checks this flag and does a 'rescan'.
There are a couple of other gotchas there, basically dealing with
LPRM removing jobs, but this will cause the queue to be scanned only
after all the jobs in the queue are processed in the order that
they were first in.
I may do this, and add a 'scan_queue_only_when_all_jobs_processed'
option to invoke this.
Patrick ("Don't look up? Then why did you say 'duck?' I don't see no
ducks?") Powell
------------------------------------------------------------------------
-----
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest
[EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, call Patrick Powell or one of the friendly
staff at Astart Technologies for help. Astart also does support for
LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
------------------------------------------------------------------------
-----
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, call Patrick Powell or one of the friendly
staff at Astart Technologies for help. Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-----------------------------------------------------------------------------