[Mimedefang] Can mimedefang be run nice?

Jan-Pieter Cornet johnpc at xs4all.nl
Sun Oct 15 06:36:50 EDT 2006


On Sat, Oct 14, 2006 at 10:25:36AM -0700, Barton L. Phillips wrote:
> >  Please, give infos on your setup (hardware and MTA) and maybe
> >someone in the list will recognize a situation he already had to
> >tame (and maybe succeeded to overcome) !
> Thanks. Yes I would like help so here goes:
> CPU: AMD Athlon 1.2 GHz cache 256 KB.
> MEM: 512 MB
       ^^^^^^
There's your main problem. You seriously need more memory.

> DISK: about 60 Gig
> OS: RedHat 9 (I know it is old but I have tried to keep it as up to date as 
> possible)
> Mimedefang: 2.53
> SpamAssassin: 3.1.0
> Perl: 5.8.0

5.8.0 is generally considered to be the "brown paper bag" release
of perl. I'd recommend upgrading if at all possible, but it is not
likely to be the source of your performance problems.

> Sendmail: 8.12
> > Do you have RAM and did you try and use it for the MD tmp ?
> >  Do you have connection rate and akin stuff set to the best in
> >your sendmail conf ? 
> >  As you don't give much info on RAM/CPU/bandwidth/mailstats
> >that's quite hard to tell from here  :-) 
> I have not tried to put the MD tmp stuff on a ram disk yet. Does that help 
> a lot and how much ram disk should I use. I will have to put the Bayes 
> stuff in another place I guess.

We use a 1GByte RAM disk, but YMMV. You need a bit more than maxmailsize
times maxslaves. You definately don't want to make a larger RAM disk than,
say, 50% of your available memory :)

> I do have a little stuff in the .procmailrc files but nothing complicated. 
> Spamassassin is run by MD.
> 
> if ((-s "./INPUTMSG") < 300*1024) {
> I scan anything less then 300KB. I changed this from the default 100KB was 
> that a mistake?

That depends. Normally there aren't many messages between 100K and 300K,
so it shouldn't make much of a difference.

> I also have been getting the RulesDuJour stuff. Is that maybe a problem?
> 
> 10_local_report.cf           70_sare_header.cf  70_sare_stocks.cf           
> 72_sare_bml_post25x.cf    70_sare_adult.cf             70_sare_html.cf    
> 70_sare_whitelist_rcvd.cf     99_sare_fraud_post25x.cf  tripwire.cf
> 70_sare_bayes_poison_nxm.cf  70_sare_oem.cf     70_sare_whitelist_spf.cf    
> init.pre                  v310.pre
> 70_sare_evilnum0.cf          70_sare_random.cf  
> 71_sare_redirect_pre3.0.0.cf  local.cf

Yes! That's a problem! You're MIMEDefang slaves (with SA integrated) will
probably get very large, in the order of 60Meg per process? That is largely
non-shared memory, you will very quickly exceed your available RAM.

> I am also doing SpamCop, DCC, Pyzor, and Razor2. I know these can take time 
> is that maybe my problem, if so what should I remove and/or add?

Time is a problem insofar that it makes it more likely that multiple
MD slaves run at the same time... each taking up memory.

-- 
Jan-Pieter Cornet <johnpc at xs4all.nl>
!! Disclamer: The addressee of this email is not the intended recipient. !!
!! This is only a test of the echelon and data retention systems. Please !!
!! archive this message indefinitely to allow verification of the logs.  !!



More information about the MIMEDefang mailing list