> -----Original Message-----
> From: Josh Trutwin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 17, 2004 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: spamd fast but spamc slow?
> 
> Ok,
> 
> I hope this is just some dumb simple thing, but I've noticed a horrible
> slowdown with my mail server (Debian + qmail + QS + clamav + SA).  I first
> thought it was QS, then Clam, but it's actually SA.  Messages are taking
> anywhere from 50 to 300 seconds to scan on a Dual PIV 2.4 Xeon on a not-
> too-heavy mail load (thank god).
> 
> Anyway, after digging down, QS reported that it took 50 seconds to scan a
> mail, but watching the SA log in Debug mode said that the message took
> only 3-4 seconds to scan.  So I took QS out of the picture and ran spamc
> from the command line on the sample email in the distribution.  Sure
> enough - spamd scans in a few seconds, but spamc sits there waiting for
> something.  No debug option on spamc so I don't know what's happening.
> 
> Here are some specifics:
> 
> spamd running with:
> 
> spamd -d -D -q -x -L -u spamd
> 
> bayes, autowhitelist, etc turned off in config files.

*** rest snipped so the gtube string below doesn't mark me up

Sounds like you are spawning into a lot child processes and hitting the swap
file.  Try limiting the number of child processes ( -m # I believe) to
something reasonable at first (say 10) and see if it helps, then adjust
upward from there if it does.

Todd

Reply via email to