Improve performance on long fat networks (LFNs) #2910
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2905
Probably fixes #1625
Fixes #1483
Fixes #1026
On Linux, the TCP send buffer size is increased to 32768 if it is less that this (which it normally is). This however has the effect of disabling dynamic buffer sizing, leading to a maximum available bandwidth of
max_bandwidth = 262144 (bits) / round_trip_time (secs)
This is not noticeable on a LAN with an RTT of around 0.5ms, but very noticeable on a WAN with an RTT of 0.25s.
Comments in the config file and manpage in this area are improved, as is the logging if the parameters are actually set.
This change has no impact on default FreeBSD behaviour. On this platform the default TCP buffer size (
net.inet.tcp.sendspace
) is 32768.