Hi:
 
AFAIK you can always use ulimit (http://www.ss64.com/bash/ulimit.html) or
softlimit (http://cr.yp.to/daemontools/softlimit.html) for CPU time used.
 
Using it as a filter:
 
For example:
 
In /var/qmail/supervise/spamd/run
 
From:
 
#!/bin/sh
exec /usr/bin/spamd -x -u vpopmail -s stderr 2>&1

 
To:
 
#!/bin/sh
exec /usr/bin/softlimit [YOURSOFTLIMITOPTIONS] /usr/bin/spamd -x -u vpopmail
-s stderr 2>&1

 
 
Cheers.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
                                     |
David Sanchez Martin                 |         [EMAIL PROTECTED]
Administrador de Sistemas            |       http://www.e2000.es
<http://www.e2000.es/> 
E2000 Nuevas Tecnologias             |
                                     |
E2000 Organizacion de Empresarios    |    Tel : +34 902 19 61 77
      Mediadores de Seguros          |
                                     |
Agustin Bravo Esquina Calle C        |
33120 Pravia Asturias Spain          |
                                     |
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


 

  _____  

De: Shelly [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 14 de diciembre de 2006 7:10
Para: [email protected]
Asunto: Re: [qmailtoaster] SpamAssassin cpu usage


Yes, I did killall spam processes before restart, and no Im not using Pyzor.
Is it possible to run spamd in daemon mode, and would that reduce how much
CPU it uses? Thanks


----- Original Message ----
From: Michael Amster <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, 14 December, 2006 3:59:45 PM
Subject: Re: [qmailtoaster] SpamAssassin cpu usage


Did you stop spamd and then kill all the processes before starting up 
again?  What does your rulesdujour look like?  Do you have DCC, Pyzor or 
Razor enabled?  I also found Pyzor to be a problem.

-MA

Shelly wrote:
> Hi Michael, I have just tried that one, however the spamd at 100% 
> still continues. Is there anything else that would be able to throttle 
> spamd to not use 100% cpu?
>
> ----- Original Message ----
> From: Michael Amster <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, 14 December, 2006 1:24:59 PM
> Subject: Re: [qmailtoaster] SpamAssassin cpu usage
>
> What rulesets are you running?  If you use rulesdujour, I have found
> that eliminating:
>
>     * *BLACKLIST* a blacklist of spammers.
>     * *BLACKLIST_URI* looks for these domains inside URL's in the message.
>
> These two rulesets are huge and can cause swapping on the server.  I
> removed them from my rulesdujour and things became quite manageable.
>
> -MA
>
>
> Shelly wrote:
>
> > Is there anyway to limit the amount of CPU spamassassin uses?
> > Currently the spamd process is running at 100 percent, and it seems to
> > be the cause of connections being dropped. concurrencyremote and
> > concurrencyincoming are set to 500 connections - should I be looking
> > anywhere else? Any help would be appreciated. Thanks
> >
> > Send instant messages to your online friends
> > http://au.messenger.yahoo.com
>
>
>
> ---------------------------------------------------------------------
>      QmailToaster hosted by: VR Hosted <http://www.vr.org>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> Send instant messages to your online friends 
> http://au.messenger.yahoo.com 


---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Send instant messages to your online friends http://au.messenger.yahoo.com 
BEGIN:VCARD
VERSION:2.1
N:Sánchez Martín;David
FN:[EMAIL PROTECTED] ([EMAIL PROTECTED])
ORG:E2000 Financial Investments, S.A.;Centro de Nuevas Tecnologías
TITLE:Administrador de Sistemas
TEL;WORK;VOICE:902196177
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA;Asturias;;;Espa=F1a
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA=0D=0AAsturias=0D=0AEspa=F1a
URL;WORK:http://www.e2000.es
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060705T152542Z
END:VCARD

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to