You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Anne Ramey <an...@blast.com> on 2006/01/12 23:10:56 UTC

optimization failing

I'm installed SA 3.1 with Amavisd-new and postfix 2.2.5 on fedora core 3 
and am having serious mail slowdowns, as much as and hour.  I've figure 
out it's SA because the SA check as taking 8-12 seconds, which was about 
75%+ of the processing. I've been trying to sort through my rulesets to 
see which one might be causing the problem with no luck.  I went ahead 
and removed all the custom rulesets and now it's soo much worse.  Now 
the SA check is taking 45 seconds (99%)!  please help.  Why would it 
take longer with fewer rulesets?  The machine load is back down, but I 
think this will slow mail down further.  I'm at a loss.  What else can I 
do to optimize the performace?

Thanks
-- 
Anne

Re: optimization failing--fixed

Posted by Anne Ramey <an...@blast.com>.

Anne Ramey wrote:
> I'm installed SA 3.1 with Amavisd-new and postfix 2.2.5 on fedora core 3 
> and am having serious mail slowdowns, as much as and hour.  I've figure 
> out it's SA because the SA check as taking 8-12 seconds, which was about 
> 75%+ of the processing. I've been trying to sort through my rulesets to 
> see which one might be causing the problem with no luck.  I went ahead 
> and removed all the custom rulesets and now it's soo much worse.  Now 
> the SA check is taking 45 seconds (99%)!  please help.  Why would it 
> take longer with fewer rulesets?  The machine load is back down, but I 
> think this will slow mail down further.  I'm at a loss.  What else can I 
> do to optimize the performace?
> 
> Thanks

Put /var/amavis/tmp and /var/amavis/.spamassassin on tmpfs.  All better now.

Thanks,
Anne

Re: optimization failing

Posted by Loren Wilton <lw...@earthlink.net>.
Basically only two possibilities: you're thrashing the poor box to death by
running out of memory, or network tests are taking an age.  Or maybe both.

How many children?  What load average?  How much memory on the machine?  How
much free memory?  Do you have a local caching DNS for the various RBL
checks?

        Loren


Re: optimization failing

Posted by Matt Kettler <mk...@evi-inc.com>.
Anne Ramey wrote:
> I'm installed SA 3.1 with Amavisd-new and postfix 2.2.5 on fedora core 3
> and am having serious mail slowdowns, as much as and hour.  I've figure
> out it's SA because the SA check as taking 8-12 seconds, which was about
> 75%+ of the processing. I've been trying to sort through my rulesets to
> see which one might be causing the problem with no luck.  I went ahead
> and removed all the custom rulesets and now it's soo much worse.  Now
> the SA check is taking 45 seconds (99%)!  please help.  Why would it
> take longer with fewer rulesets? 

Well, reducing rulesets should improve the speed, but that assumes all other
things are equal.

Are you using any network tests? Those long delays sound a lot like one or more
network tests are enabled and timing out.

try a test of running a message through spamassassin -L and compare it to a run
through spamassassin. If the -L is substantially faster, you've got network test
troubles.