Date: Thu, 15 Jan 2009 01:40:02 GMT From: Tom Judge <tom@tomjudge.com> To: freebsd-net@FreeBSD.org Subject: Re: kern/96268: [socket] TCP socket performance drops by 3000% if packets are split at the first byte Message-ID: <200901150140.n0F1e2Pe039595@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/96268; it has been noted by GNATS. From: Tom Judge <tom@tomjudge.com> To: bug-followup@FreeBSD.org, jost2345@users.sourceforge.net Cc: Subject: Re: kern/96268: [socket] TCP socket performance drops by 3000% if packets are split at the first byte Date: Wed, 14 Jan 2009 19:31:11 -0600 I have seen this issue on 7.0-RELEASE. It seems to be related to the nagle algorithm being enable by default on connections on the loop back interface. One application level work around is to set the TCP_NODELAY option on the socket so that the nagle algorithem is disabled. This bug affects users of php java bridge as newer release talk to a JVM over a tcp socket bound to localhost, and the typical packets passing back and forward are very small. It is also possible to reproduce this bug using PHP 5. I can attach test scripts if required. Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901150140.n0F1e2Pe039595>