Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

FW: Spamd HIGH LOAD

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


carnival2171 at hotmail

Nov 5, 2007, 2:13 PM

Post #1 of 5 (160 views)
Permalink
FW: Spamd HIGH LOAD

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: Joey[at]Web56.Net
To: users[at]spamassassin.apache.org
Subject: RE: Spamd HIGH LOAD
Date: Mon, 5 Nov 2007 16:11:57 -0500

























From: Qnet ..
[mailto:carnival2171[at]hotmail.com]

Sent: Monday, November 05, 2007 2:47 PM

To: users[at]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/


francois.rousseau.tech at gmail

Nov 5, 2007, 2:16 PM

Post #2 of 5 (142 views)
Permalink
Re: Spamd HIGH LOAD [In reply to]

How do you start spamassassin?



On 11/5/07, Qnet .. <carnival2171[at]hotmail.com> 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: Joey[at]Web56.Net
> To: users[at]spamassassin.apache.org
> Subject: RE: Spamd HIGH LOAD
> Date: Mon, 5 Nov 2007 16:11:57 -0500
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> From: Qnet ..
> [mailto:carnival2171[at]hotmail.com]
>
> Sent: Monday, November 05, 2007 2:47 PM
>
> To: users[at]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/


sm at resistor

Nov 5, 2007, 3:06 PM

Post #3 of 5 (142 views)
Permalink
Re: FW: Spamd HIGH LOAD [In reply to]

At 14:13 05-11-2007, Qnet .. 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.

http://wiki.apache.org/spamassassin/FasterPerformance

Regards,
-sm


carnival2171 at hotmail

Nov 6, 2007, 7:03 AM

Post #4 of 5 (136 views)
Permalink
FW: Spamd HIGH LOAD [In reply to]

> Date: Mon, 5 Nov 2007 18:53:07 -0500
> From: mkettler_sa[at]verizon.net
> Subject: Re: Spamd HIGH LOAD
> To: carnival2171[at]hotmail.com
> CC: users[at]spamassassin.apache.org
>
> 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..)
>

Thank you so much.
My
Qmail server have 1GB RAM
now I set -m 20.
My doubt is: what consequences it implies over queue ?
i will have more spam ?
What is "normal" high load for a server?

Thank you and sorry for my bad english.

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


mkettler_sa at verizon

Nov 6, 2007, 8:51 PM

Post #5 of 5 (134 views)
Permalink
Re: FW: Spamd HIGH LOAD [In reply to]

Qnet .. wrote:
>
>
> Thank you so much.
> My
> Qmail server have 1GB RAM
> now I set -m 20.
> My doubt is: what consequences it implies over queue ?
It depends a bit on where in your mail processing spamc is called.

I *think* you're using spamcontrol under qmail, which calls spamassassin
at the SMTP data phase.

If you are calling SA at the SMTP data phase, this will essentially
"bottleneck" your server to 20 simultaneous email messages in the data
phase. You can have more connections, but they'll queue up waiting for
the data phase OK.

> i will have more spam ?
No, not generally. If your spamd children are desperately too low, then
spamc clients will eventually time out and skip the scan, but that's
unlikely unless your mail load is *really* high.
> What is "normal" high load for a server?
What's a "high load"?

Really there's no general "normal" for a "high load" because everyones
definition of "high load" is different. What's your average message load
like? 100,000 messages a day? 1 million a day? 10 million a day?

Assuming an average scan time of 2 seconds per message, 20 spamds could
theoretically handle 864,000 messages a day. Of course, email rate isn't
exactly smooth throughout the day, mid-day rates can easily be 4 times
higher than overnight rates, but it's still enough for 100k/day, but not
enough for 1 million.

Also, your scan time may be noticeably higher, or lower, than 2 seconds,
depending on what features you've got enabled, if you've got local RBL
servers (ie: rsync and rbldnsd), if you're using "expensive" plugins
like fuzzyocr.. However, it's a good rough estimate to start from.

>
> Thank you and sorry for my bad english.

That's Ok.. I'm a native speaker of English, and even mine isn't so great..

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.