On Sat, Aug 23, 2003 at 10:19:54PM -0700, Kai MacTane wrote:

> Hi. I can't speak to your issue with Bayes file corruption, but I have 
> recently had to deal with huge amounts of mail spiking my CPU. (Admittedly, 
> this isn't hard, since my mail server is a Pentium (that's Pentium I, 
> pre-MMX) at 133 MHz with 64 MB of RAM (and it's also running Apache, MySQL, 
> and a few other things).

> A while back, my DSL was down for 5 days. I *do* have a secondary MX, which 
> promptly tried to deliver 5000 delayed messages. My user delivery is a bit 
> customized, using a couple of extra Perl scripts in addition to spamc/spamd 
> calls. My CPU load was going through the roof as Qmail tried to deliver 
> everything as quickly as possible. kswapd, in particular, was going nuts 
> trying to handle the continual page-swaps.

> I found that dropping my concurrencylocal to 5, or even to 3, helped things 
> immeasurably. The load wavered between 3 and 5, and messages were delivered 
> around one per second.

> I realize your problem is already in the past, but in case you (or anyone 
> else on this list) ever runs into the same problem again, I wanted to 
> advise on this method of dealing with it.

I agree emphatically: keeping a low concurrencylocal means that you
aren't trying to fit ten kilos of stuff into a box that's good for
seven kilos max, as I found out about 3 months ago in essentially
the same circumstances. It may take a while to chew through the input,
but as long as the mail is processed faster than the mean interarrival 
time, you're OK in the long run. 

The idea is to instantiate only as many processes as will fit into
available RAM; swapping is *much* slower than just keeping it all in
RAM, and will come close to reducing your machine to a useless stone.

-- 
Mike Andrews
[EMAIL PROTECTED]
Tired old sysadmin since 1964


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to