Bug 93378 - [tcp] Slow data transfer in Postfix and Cyrus IMAP (workaround known)
Summary: [tcp] Slow data transfer in Postfix and Cyrus IMAP (workaround known)
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 09:20 UTC by Juris Orlovs
Modified: 2016-12-22 19:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juris Orlovs 2006-02-15 09:20:03 UTC
There is a problem with Postfix (2.2.8; 2.3-20060112) and Cyrus IMAP (2.3.1) (installed from ports)

With Postfix on FreeBSD 6.0, transferring of messages using SMTP is slow, aproximately 7MB in 20 seconds on direct 100MBit/s link.

In Cyrus IMAP there is a issue with message writing to IMAP folders. Reading of 8MB message takes a bit less than a second, but in that time 8MB message write to IMAP folder over 100Mbit/s connection takes ~7 seconds. If writing many small messages to imap folder (~1KB in size) then average transfer rate of them is ~10 messages per second.

Hardware: (2x 3GHx Xeon, 2GB RAM, Adaptec 2410SA, 2x WD RAPTOR 74GB, 2x SEAGATE 300GB, Mainboard - Intel SE7520BD2)

For example, there is no such problems with FTP.

Fix: 

"sysctl -w net.inet.tcp.delayed_ack=0" fixes mentioned problems with data transfer
Comment 1 Robert Watson freebsd_committer freebsd_triage 2008-03-08 20:58:36 UTC
Responsible Changed
From-To: freebsd-bugs->net

Over to maintainers.
Comment 2 citrin 2008-03-08 21:43:45 UTC
Probably it is interact between delayed ack and Nagle's algorithm.

They shouldn't be used together:
http://developers.slashdot.org/comments.pl?sid=174457&cid=14515105

So application which may be affected by this problem should disable
Nagle's algorithm for via socket option TCP_NODELAY.

As I can see current postfix uses setsockopt TCP_NODELAY so consider
to upgrade postfix to 2.4.7 or 2.5.1 first.
Postifx 2.2.8 is too old.

-- 
WBR,
  Anton Yuzhaninov
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2008-03-09 06:32:55 UTC
Responsible Changed
From-To: net->freebsd-net

Canonicalize assignment.
Comment 4 Robert Watson freebsd_committer freebsd_triage 2009-02-02 15:18:25 UTC
State Changed
From-To: open->feedback

Dear Juris: 

I was wondering if you had received Anton's follow-up regarding Postfix 
and TCP_NODELAY, in particular, whether upgrading Postfix versions had 
resolved the problem for you. 

Thanks, 
Robert