Calculate the optimal TCP window size needed to maximize throughput based on your link speed and network latency.
Each operating system requires different configuration changes to adjust the TCP receive window.
regedit.exeHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ParametersTcpWindowSize and GlobalMaxTcpWindowSizePlease note that several other factors in transfer performance can be adjusted on the same page. Please visit Microsoft for additional details.
regedit.exeHKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ParametersGlobalMaxTcpWindowSizePlease note that several other factors in transfer performance can be adjusted on the same page. Please visit Microsoft for additional details.
As there are several variants of Linux not all the configuration options are described below. However the following commands may assist you. First to view the current configured network settings use:
cat /proc/sys/net/ipv4/tcp_memcat /proc/sys/net/core/rmem_defaultcat /proc/sys/net/core/rmem_maxcat /proc/sys/net/core/wmem_defaultcat /proc/sys/net/core/wmem_maxcat /proc/sys/net/core/optmem_maxTo edit the configuration:
sysctl -p /etc/sysctl.confsysctl -w net.core.rmem_max=8388608
sysctl -w net.core.wmem_max=8388608
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
Please note that these values are not necessarily the final settings you want to use. If you have a Redhat enterprise support or Ubuntu enterprise support they can assist further.
Note: 65,535 bytes is historically the maximum value. However IETF RFC 1323 accommodates larger sizes.