MCP Efficiency?

Julian Field MailScanner at ecs.soton.ac.uk
Fri Aug 18 09:26:46 IST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



David Jacobson wrote:
> Hi Guys / Julian,
>
> We've noticed some load problems using MCP.  We initially thought it had
> to do with the MCP spam.assassin.prefs using all the SA plugins...
>
> We enabled MCP on one domain on a server that's load average is 3 as we
> enable MCP the load jumps to 15.
>   
Yes, the load cost is very high.
> I'm concerned how this can happen as it's just scanning 1 domain out of
> 100's that does very minimal mail on the server the ruleset is to use
> MCP for one domain.  
>
> Julian, do you perhaps know of any problems with this code in terms of
> speed?  As far as I'm concerned if it's enabled for one domain with
> minimal volume it should not immediately jump the load on the server to
> 15.  I did a watch on ps and noticed the MCP check only comes once every
> like 5-10 minutes for a few seconds.
>   
Currently, I do the MCP checks on every batch unless there is an 
explicit MCP Checks = no in MailScanner.conf. If any domain uses it, 
then it is called for every batch of messages.

What I could do to improve the situation is check every message in the 
batch to see if that message produces a "yes" answer from a ruleset. If 
no messages produce a "yes" then don't call MCP.

That should relieve your problem nicely.

Prepared to test it for me if I post a patch?

Jules.
> Thanks in advance.
>
>   

- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.7.0
Charset: ISO-8859-1

wj8DBQFE5XnHEfZZRxQVtlQRAulTAJ4ttwQiMsjPKRvHbhdvHMGdpdQ3NwCfQC9F
JHVeyuXfFQ5lEjp7zJHOPTU=
=+qnw
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list