From: Jean D. <am...@dr...> - 2005-02-02 17:12:54
|
Mark Martinec wrote : >Jean, > > > >>I'm making bench with amavisd 2.2.1 and SA 3.0.2 on postfix 2.1.5. >>It runs on a dual xeon 2.8 with 2GB of ram with a redhat 3 >>(2.4.21-15.0.4.ELsmp) >>... Bayes is in mysql and so are policies >>I use ramdisk for the tmp directory >>I've set LANG=C LC_ALL=C >>$max_servers = 7; $max_requests = 30; >> >> > > > >>I have this perfs With SA: >>1.9 msg / sec : with default rules + 70_sare_adult.cf 70_sare_oem.cf >> 70_sare_random.cf >>3.0 msg / sec : with default rules >>4.5 msg / sec : default rules without 20_drugs.cf and 20_phrases.cf >> >>What could I make to have best perfs with SA's default rules + this 3 >>sare's rules? >> >>I think that with 2 cpu and 2 GB of ram, the perfs should be better. >> >> > >You may experiment with finding the optimum $max_servers for a particular >combination of rules and selected network tests, although I think you are >already close to it and seems you know how to go about pretty well. >You may skim through http://www.ijs.si/software/amavisd/README.performance >just in case (like turning off syncing on syslog file, if running on Linux). > >Perhaps people on the SA list might know which rulesets are >too CPU expensive for the benefit they bring. > > Mark > > > Here is an answer off the utility of these sare rules that I had on SA-user maillist >70_sare_random.cf shouldn't have any significant impact. Those tests >are real simple and efficient. >70_sare_adult.cf contains a lot of obfuscation tests, but they're >among the most efficient of that type. >There's also a lot of obfuscation testing in 70_sare_oem.cf, some of >it not quite so efficient (some testing of \s* between words), but >nothing horrendous. >There's nothing in those rules that should cause a 50% drop in >efficiency. In my config, changing $max_servers doesn't make realy change in term of speed. The load average is near 7, no swap is use. Iowait<1 I Think my syslog is ok. I've added - before each file path. Where I run amavisd in debug mod (with $sa_debug=1) I see that logs block on the console (just a litte time and restart) on this line : debug: running body-text per-line regexp tests; score so far=-1.96 As I work on a redhat, Is it possible that it's still an UTF-8 problem? (I've also change LANG in /etc/sysconfig/i18n and reboot) I'm going to run an iconv on SA rules (I think that there is a charset problem on the disk) Do you think it could speed up SA? (Actually : SA check: 9365ms, SA check: 9706ms, SA check: 7256ms...) Thanks for your help. Jean Deram |