Patrick, > I'm trying to locate a bottleneck in a mailsystem. The TIMING in amavis > logging shows that amavis spends most time with "SMTP DATA": > > Mar 2 08:37:20 mail amavis[12218]: (12218-03) TIMING [total 4034 ms] - > SMTP greeting: 0 (0%)0, SMTP EHLO: 0 (0%)0, SMTP pre-MAIL: 0 (0%)0, SMTP > pre-DATA-flush: 24 (1%)1, SMTP DATA: 3882 (96%)97, ...
> Mar 2 08:37:41 mail > amavis[12416]: (12416-05) TIMING [total 7679 ms] - SMTP greeting: 4 (0%)0, > SMTP EHLO: 0 (0%)0, SMTP pre-MAIL: 0 (0%)0, SMTP pre-DATA-flush: 0 (0%)0, > SMTP DATA: 7275 (95%)95, ... > What does SMTP DATA refer to? The system uses amavis archive method to copy > messages. Could it be related to that? The "SMTP DATA" timing section refers to an actual transfer of mail contents (header section + body) from MTA to amavisd. In my benchmarking of 2.7.0 I measured the following transfer rates on our regular mailer (AMD Opteron 2376, 8 CPUs - not the very latest and greatest but still fine): RELEASE_NOTES: - rewritten a code section on receiving SMTP/LMTP DATA, replacing perl line-by-line reads & processing by reading & processing 32 kB chunks of data at a time; as a result, data transfer rate has been increased by a factor of about 3.9 for plain text session, and by a factor of 11 for encrypted (TLS) session. Measured data rates of an SMTP DATA transfer between Postfix and amavisd on a loopback interface: No TLS (no session encryption): . amavisd receiving, old code: 8.3 MiB/s . amavisd receiving, new code: 32.3 MiB/s . amavisd sending: 18 MiB/s With TLS (encrypted session, AES256-SHA): . amavisd receiving, old code: 1.0 MiB/s . amavisd receiving, new code: 11.2 MiB/s . amavisd sending: 4.3 MiB/s So the question is: what is the size of these messages? Calculate the transfer rate for larger messages. If you get much different results from mine, there must be something wrong there. Are both the MTA and amavisd on the same host? Are they communicating over an inet socket? On a loopback interface? Are you using TLS? Is there any milter involved? Any unusual MTU settings on the interface? Mark ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user Please visit http://www.ijs.si/software/amavisd/ regularly For administrativa requests please send email to rainer at openantivirus dot org