You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alvaro Graves <ag...@dcc.uchile.cl> on 2005/09/29 16:49:58 UTC

SA uses all my cpu

Hi, I have a postfix+courier+mysql configuration. Now I'm trying to 
install spamassassin, but when I start it, uses almost all the cpu. What 
files should I look ?

Thanks in advance

-- 

Saludos, 
AG

------------------------------------------------------
Alvaro Graves Fuenzalida - agraves [@] dcc.uchile.cl
Ingeniero Civil en Computacion - Universidad de Chile
Estudiante de magister - Universidad de Chile
------------------------------------------------------


Re: SA uses all my cpu

Posted by Loren Wilton <lw...@earthlink.net>.
> if ( $SIZE < 26144 )
> {
>     exception {
>        xfilter "/usr/bin/spamc"
>     }
> }

I think you may have dropped a digit there.  26K is a little small for the
filter limit.  You probably meant 262K, but there is no particular reason to
pick a binary number.  250000 would work fine.

        Loren


Re: SA uses all my cpu

Posted by Alvaro Graves <ag...@dcc.uchile.cl>.
Thanks for the advice. I tried using spamd/spamc changing /etc/maildroprc

if ( $SIZE < 26144 )
{
    exception {
       xfilter "/usr/bin/spamc"
    }
}

and in /etc/init.d/spamassassin

[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0

But, nothing new happens. What am I doing wrong?

thanks
Matt Kettler wrote:

>Alvaro Graves wrote:
>  
>
>>Hi, I have a postfix+courier+mysql configuration. Now I'm trying to
>>install spamassassin, but when I start it, uses almost all the cpu. What
>>files should I look ?
>>    
>>
>
>SA can be very CPU intensive. If you're seeing excessive CPU load you can take
>one of several measures.
>
>
>1) if you're using spamassassin use spamc/spamd instead. This saves a LOT of
>per-message overhead.
>
>2) change your spamd -m parameter to have fewer children.
>
>3) disable bayes (this has accuracy drawbacks, but does save a lot of cpu)
>  
>


Re: SA uses all my cpu

Posted by Matt Kettler <mk...@evi-inc.com>.
Alvaro Graves wrote:
> Hi, I have a postfix+courier+mysql configuration. Now I'm trying to
> install spamassassin, but when I start it, uses almost all the cpu. What
> files should I look ?

SA can be very CPU intensive. If you're seeing excessive CPU load you can take
one of several measures.


1) if you're using spamassassin use spamc/spamd instead. This saves a LOT of
per-message overhead.

2) change your spamd -m parameter to have fewer children.

3) disable bayes (this has accuracy drawbacks, but does save a lot of cpu)