Re: Spamd HIGH LOAD

2007-11-05 Thread Matt Kettler
Matt Kettler wrote:
>
>  Your swap used should never be more than mem free if you can
> avoid it.
>   

Note: by "mem free" I mean total "free" memory.. i.e.:  mem free +
buffers + cache.

It's quite normal for just the "free" memory number to be low. Most OS's
will turn free memory into a really big disk cache if they can, but
they'll readily turn this back into memory for processes when needed.

In your example, you've got 37024k of "total" free memory, even though
there's only 1848k that's truly not being used at all. However, 1335848k
of swap is being used, which is more than 3 times as much as your total
free memory.. That's not good, and likely indicates you'll be grinding
your disk quite heavily as processes thrash in and out of the swap.






Re: Spamd HIGH LOAD

2007-11-05 Thread Matt Kettler
Qnet .. wrote:
> I start :
>
> #!/bin/sh
> # spamassassin This script starts and stops the spamd daemon
> #
>  
> PATH=$PATH:/usr/local/sbin:/usr/local/bin
> case "$1" in
>   start)
> cd /
>  
> /usr/bin/spamd -v -u vpopmail -m 60 -x -q -s stderr -r
> /var/run/spamd/spamd.pid \
> -i 172.16.10.14 -A 172.16.10.0/24 2>&1 | \
> /usr/local/bin/setuidgid qmaill \
> /usr/local/bin/multilog t !spamdappend /var/log/qmail/spamd &
> echo "spamd started"

60 is *WAY* too many spamd children unless you've got a *VERY* beefy system.

Try modifying that "-m 60" to something more sane, like the default,
which would be "-m 5". If you've got a lot of mail going through, 5
won't handle it, so for that I might start at 15.

If your mail starts backing up, you can increase the number of spamd
children, but be aware that too many will just grind your system to a
halt. Try adding spamd children in increments of 5, and watch the "top"
output. Your swap used should never be more than mem free if you can
avoid it.

 You've got a gig of ram, and your spamds are 30mb a pop or so...  you
should be ok up to about 20-25 spamd children, depending on how much
other stuff is eating your memory, but you'll quickly run into trouble
if you go over 30.

(30 spamds at 30mb each is 900mb of ram.. probably the absolute max you
can fit even if the server isn't doing anything else but mail..)



RE: Spamd HIGH LOAD

2007-11-05 Thread Qnet ..

I start :

#!/bin/sh
# spamassassin This script starts and 
stops the spamd daemon
#
 
PATH=$PATH:/usr/local/sbin:/usr/local/bin
case 
"$1" in
  start)
cd 
/
 

/usr/bin/spamd -v -u vpopmail -m 60 -x -q -s stderr -r /var/run/spamd/spamd.pid 
\
-i 172.16.10.14 -A 
172.16.10.0/24 2>&1 | \

/usr/local/bin/setuidgid qmaill \

/usr/local/bin/multilog t !spamdappend /var/log/qmail/spamd 
&
echo "spamd 
started"
;;
 
  
stop)
if [ -r 
/var/run/spamd/spamd.pid ]; 
then
  pid=`cat 
/var/run/spamd/spamd.pid`
  
kill $pid || ( echo "failed to stop spamd" && exit 1 
)
  echo "spamd (pid 
$pid) stopped"

else
  echo 
"/var/run/spamd/spamd.pid doesn't exist, is spamd 
running?"

fi
;;
 
  
restart)
$0 stop && sleep 
2 &&  $0 start

;;
 
  
*)
echo "usage: spamassassin.rc 
(start|stop|restart)"

;;
esac





> Date: Mon, 5 Nov 2007 17:16:29 -0500
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; users@spamassassin.apache.org
> Subject: Re: Spamd HIGH LOAD
> 
> How do you start spamassassin?
> 
> 
> 
> On 11/5/07, Qnet .. <[EMAIL PROTECTED]> wrote:
> >
> >
> > I used /usr/bin/sa-update –D allways. then restart. but I have the load
> > problem still. Do you know other way to solve it? thanks.
> > From: [EMAIL PROTECTED]
> > To: users@spamassassin.apache.org
> > Subject: RE: Spamd HIGH LOAD
> > Date: Mon, 5 Nov 2007 16:11:57 -0500
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > From: Qnet ..
> > [mailto:[EMAIL PROTECTED]
> >
> > Sent: Monday, November 05, 2007 2:47 PM
> >
> > To: users@spamassassin.apache.org
> >
> > Subject: Spamd HIGH LOAD
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> >
> > My Qmail server work  with spamassassin + clamav. The processes
> > Spamd  take the most part of the load so it 's  Spamassassin
> > crash. Do you know any way to solve it?
> >
> > Please look the attach file( top -d1 ). Thank you so munch !
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Try running /usr/bin/sa-update –D, then restart SA see if this
> > helps.
> >
> >
> >
> > Also do you run rulesdajour?
> >
> >
> >
> > Joey
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _
> > Express yourself instantly with MSN Messenger! Download today it's FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: Spamd HIGH LOAD

2007-11-05 Thread François Rousseau
How do you start spamassassin?



On 11/5/07, Qnet .. <[EMAIL PROTECTED]> wrote:
>
>
> I used /usr/bin/sa-update –D allways. then restart. but I have the load
> problem still. Do you know other way to solve it? thanks.
> From: [EMAIL PROTECTED]
> To: users@spamassassin.apache.org
> Subject: RE: Spamd HIGH LOAD
> Date: Mon, 5 Nov 2007 16:11:57 -0500
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> From: Qnet ..
> [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, November 05, 2007 2:47 PM
>
> To: users@spamassassin.apache.org
>
> Subject: Spamd HIGH LOAD
>
>
>
>
>
>
>
> Hi,
>
>
> My Qmail server work  with spamassassin + clamav. The processes
> Spamd  take the most part of the load so it 's  Spamassassin
> crash. Do you know any way to solve it?
>
> Please look the attach file( top -d1 ). Thank you so munch !
>
>
>
>
>
>
>
>
>
>
>
> Try running /usr/bin/sa-update –D, then restart SA see if this
> helps.
>
>
>
> Also do you run rulesdajour?
>
>
>
> Joey
>
>
>
>
>
>
>
>
>
> _
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


RE: Spamd HIGH LOAD

2007-11-05 Thread Joey
From: Qnet .. [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 05, 2007 2:47 PM
To: users@spamassassin.apache.org
Subject: Spamd HIGH LOAD

 

Hi, 
My Qmail server work  with spamassassin + clamav. The processes Spamd  take
the most part of the load so it 's  Spamassassin crash. Do you know any way
to solve it?
Please look the attach file( top -d1 ). Thank you so munch !

  _  

 

 

Try running /usr/bin/sa-update -D, then restart SA see if this helps.

 

Also do you run rulesdajour?

 

Joey



Re: Spamd HIGH LOAD

2007-11-05 Thread Richard Frovarp

Qnet .. wrote:

Hi,
My Qmail server work  with spamassassin + clamav. The processes Spamd  
take the most part of the *load *so it 's  Spamassassin crash. Do you 
know any way to solve it?

Please look the attach file( top -d1 ). Thank you so munch !



I don't run qmail or spamd, but I can tell you that you shouldn't be 
running so many spamd processes. You probably only need a couple. 
Whatever program is calling the scanning should be calling spamc. Your 
system is most definitely not properly configured, so I would review the 
correct instructions to do so.