Ok, running softlimit with a CPU time of 2 seconds has seen the CPU % max out 
at 67% now, which I can deal with. I will let it run and see if there are any 
adverse affects. On a side note, if the spamd process is limited to 2 seconds 
cpu time, and usually it would take more and have a higher % use, how does that 
work? Something musts be squeezed to fit into the 2 seconds? Thanks again

----- Original Message ----
From: David Sánchez Martín <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, 14 December, 2006 7:46:21 PM
Subject: RE: [qmailtoaster] SpamAssassin cpu usage



 
DIV {
MARGIN:0px;}



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
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






Send instant messages to your online friends http://au.messenger.yahoo.com 

Reply via email to