Improving speed in picking up messages from incoming queue
Julian Field
mailscanner at ecs.soton.ac.uk
Thu Jul 25 13:38:13 IST 2002
At 13:05 25/07/2002, you wrote:
>On a small-workload setup (around 1 message every 40 seconds), is there
>a danger to reduce the 30-second delay to, say, a 10-second delay ?
>I don't have enough messages (about 50 users) to benefit from the
>high-load = no-latency effect...
>
>If I understand your code correctly, I would have to change the line :
>
> # Wait and go round again if nothing to scan
> sleep(30), next unless @MessagesIn;
>
>Any do's and don't before I crash my production server ?
That's fine. On a quiet machine you could quite safely reduce it by a
factor of 10. After all, 30 is a number I pulled out of thin air anyway :-)
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list