[erlang-questions] 20k messages in 4s but want to go faster!

Michael Truog mjtruog@REDACTED
Sat Jul 11 02:14:10 CEST 2009


Matthew Sackman wrote:
> On Sat, Jul 11, 2009 at 01:24:46AM +0200, Johnny Billquist wrote:
>   
>> Nagle is actually a good thing, which improves performance, not decrease it.
>>
>> There is one specific situation when you don't want nagle, and that
>> is if you send very little data, and what it to be sent immediately.
>> In that specific case, Nagle is an obstruction and should be shut
>> off.
>>     
>
> Yup. The immediate part shouldn't be underestimated. The improvement to
> latency can be significant. If you're doing a lot of client-server
> communication, then disabling Nagle can improve throughput substantially
> as the latency comes down thus permitting higher round trips per second.
>
> Matthew
>   
As clarification, disabling Nagle is best for low latency networks and
improves throughput.  High latency networks can benefit from the
algorithm, so it is generally used unless it is an internal cluster of
computers.

See http://en.wikipedia.org/wiki/Nagle's_algorithm
to see why real-time systems avoid Nagle.


More information about the erlang-questions mailing list