Open the file "/etc/sysctl.conf" and add/edit the following settings:
net.core.rmem_default = 256960 net.core.rmem_max = 256960 net.core.wmem_default = 256960 net.core.wmem_max = 256960 net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_sack = 1 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_keepalive_probes = 5 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1
Save the file and give the following command:
Source and details:
if you follow the link on comment 1 , you'll read :
Tuning TCP for Linux 2.4 and 2.6
NB: Recent versions of Linux (version 2.6.17 and later) have full autotuning with 4 MB maximum buffer sizes. Except in some rare cases, manual tuning is unlikely to substantially improve the performance of these kernels over most network paths, and is not generally recommended
the guide is quite old , also.
I 'm not an network expert , but i think these kind of commands are for some network techs, using iperf , netcat etc
Thanks for sharing anyway.
PS: how is your connection with these tweaks ?
Thanks for the info ryo!
I will leave the post so maybe someone contributes some effective optimization;
I'm using this configuration now:
net.core.rmem_max = 12582912 net.core.wmem_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
Sysctl.conf file optimized for Maximize Bandwidth
wget -c http://web.archive.org/web/20090107044922/http://www.rubyringtechnologies.com/files/sysctl.conf.txt -O ~/sysctl.conf sed -i 's/\(net\.core\.hot_list_length\ =\ 256\)/\#\1/' ~/sysctl.conf cat < ~/sysctl.conf >> /etc/sysctl.conf
Run the following command to reload the config file:
Font: Wiki Sabayon Linux