Wednesday, December 31, 2014

Why we may want to disable Nagle's algorithm

Nagle's algorithm is a TCP optimization in the kernel stack that waits to aggregate small chunks of bytes before sending packets on a TCP connection. This approach optimizes the amount of frame overhead spent in sending very small packets over the network. However, when the data is fairly sporadic, this could also lead to an increase in the average delay experienced.

This can be done by:
echo 1 > /proc/sys/net/ipv4/tcp_low_latency

0 comments:

Post a Comment