-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm wondering why mail processing is slow in my machine (about 1 mail per second). I know it is because of slow antispam processing, by both amavisd and spamd (spamd is triggered via local .procmailrc rules). The actual antispam is done by spamd, amavis cares of malware. But it should be faster, this is a powerful machine. The processing by amavis takes between 120 ms and 600 ms. Not bad, considering. Spamd is slower, takes around 3 or more seconds per message (3..6). I think it is because of the waiting for online tests, so the solution would be to have more simultaneous processes. I have done this in the past - - but it is not working now. I have done these changes: /etc/sysconfig/spamd: SPAMD_ARGS="-d -c --max-children=7 " /etc/amavisd.conf: $max_servers = 5; # num of pre-forked children (2..30 is common), -m #CER - was 2 /etc/postfix/master.cf: procmail unix - n n - 7 pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} smtp-amavis unix - - n - 7 lmtp -o lmtp_data_done_timeout=1200 -o lmtp_send_xforward_command=yes I understand that it is postfix which controls how many subprocesses it starts, via those lines in master.cf. But instead of 7 procmail processes I only get two. I can see that by using watch while fetching a bunch of two hundred emails: Every 1,0s: ps afxu|grep 'amavis\|spam'|grep -v 'grep'; echo - ; mailq | grep Req... Mon Apr 23 22:50:50 2012 root 20997 0.0 0.7 144008 64556 ? SNs Apr22 0:07 /usr/sbin/spamd -d -c --max-children=7 -r /var cer 4936 7.2 1.0 165156 87788 ? SN 22:42 0:33 \_ spamd child cer 5996 6.0 0.8 150832 73444 ? SN 22:44 0:23 \_ spamd child root 9591 0.3 0.8 147688 69800 ? SN 22:49 0:00 \_ spamd child cer 10386 0.0 0.0 19288 1092 ? S 22:50 0:00 | \_ /usr/bin/spamc -s 2500000 cer 10363 0.0 0.0 19288 1092 ? S 22:50 0:00 | \_ /usr/bin/spamc -s 2500000 vscan 15648 0.0 0.5 146032 46216 ? Ss Apr22 0:00 amavisd (master) vscan 6422 0.2 0.6 148440 50552 ? S 22:44 0:00 \_ amavisd (ch17-avail) vscan 6718 0.1 0.6 147836 49900 ? S 22:45 0:00 \_ amavisd (ch14-avail) vscan 6792 0.1 0.6 147968 50024 ? S 22:45 0:00 \_ amavisd (ch13-avail) vscan 7501 0.0 0.6 147840 49840 ? S 22:46 0:00 \_ amavisd (ch2-avail) vscan 7575 0.0 0.5 147692 49052 ? S 22:46 0:00 \_ amavisd (ch1-avail) - - - -- 241 Kbytes in 30 Requests. There are at most two spamc processess... something is holding it down. But what? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk+V8KQACgkQtTMYHG2NR9XITwCeIzDGbC+EU7zwGstG4w4SEQDv ++UAn00+CLKpib8e/3v0U62G1JYXyE8c =IGCM -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org