Josh Trutwin wrote:
On Fri, 18 Aug 2006 12:16:51 -0400
"Daryl C. W. O'Shea" <[EMAIL PROTECTED]> wrote:

Josh Trutwin wrote:
I've recently had a server experience some really slow spam
processing - I'm not sure what's going on but I notice a lot of
timeouts in the mail log:

Aug 18 09:20:21 www spamd[27673]: timeout with empty $@
at /usr/local/share/perl/5.8.4/Mail/SpamAssassin/Timeout.pm line
182, <GEN16> line 1126. Aug 18 09:22:02 www spamd[27674]:
timeout with empty $@
Any suggestions?

Debian linux - spamd 3.0.4 with pyzor/dcc/razor

spamd running with:

/usr/bin/spamd -d -D -q -x -H /etc/razor --max-children=12
--socketpath=/var/spool/spamassassin/spamd.sock -u spamd
Unless you've got at least 600 or more MB of free RAM just for
spamd's use, you've got too many children and are swap
thrashing.  Back of the --max-children number.

I was getting the same results with less values - the box has 1 GB
- more is on the way though.  I disabled network tests with -L and
things work great again so something along that line is the culprit.

Using -L processes messages faster, thus requiring less children to handle the load. This error is caused by a system not being able to restore the child's config fast enough after it's done processing a message. It's always due to one of two things... high load, or high load caused by swap thrashing.

If you're using a lot of add-on rulesets your children may be taking up even more memory than budgeted above. See what they're using and confirm that you're not going to hit swap. If the problem still persists I'd like to hear about it.


Daryl

Reply via email to