3 # this script modifies the linux kernel for maximum tcp buffer size, which can
4 # improve long-haul transfers over a wan.
6 # new maximum buffer size to set.
9 echo "net.core.wmem_max=$new_max" >> /etc/sysctl.conf
10 echo "net.core.rmem_max=$new_max" >> /etc/sysctl.conf
12 echo "net.ipv4.tcp_rmem= 10240 87380 $new_max" >> /etc/sysctl.conf
13 echo "net.ipv4.tcp_wmem= 10240 87380 $new_max" >> /etc/sysctl.conf
15 echo "net.ipv4.tcp_window_scaling = 1" >> /etc/sysctl.conf
17 echo "net.ipv4.tcp_timestamps = 1" >> /etc/sysctl.conf
19 echo "net.ipv4.tcp_sack = 1" >> /etc/sysctl.conf
21 echo "net.ipv4.tcp_no_metrics_save = 1" >> /etc/sysctl.conf
23 echo "net.core.netdev_max_backlog = 5000" >> /etc/sysctl.conf