Reference:
http://www.cyberciti.biz/faq/linux-tcp-tuning/
vi /etc/sysctl.conf and add the following lines.
net.core.wmem_max=12582912
net.core.rmem_max=12582912
net.ipv4.tcp_rmem= 10240 87380 12582912
net.ipv4.tcp_wmem= 10240 87380 12582912
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000
reload the changes by this command:
sysctl -p
沒有留言:
張貼留言