You are not logged in.

#1 2013-03-07 06:07:39

Deklan
Member
From: Porto Alegre, RS - Brazil
Registered: 2012-10-07
Posts: 24

Funtoo fly: NET Optimizations

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:

sysctl -p

Source and details:
speedguide.net/articles/linux-tweaking-121

Offline

#2 2013-03-09 02:12:30

ryo
Member
From: Fréjus, France
Registered: 2010-11-17
Posts: 42

Re: Funtoo fly: NET Optimizations

hi

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 ?

Offline

#3 2013-03-11 02:20:54

Deklan
Member
From: Porto Alegre, RS - Brazil
Registered: 2012-10-07
Posts: 24

Re: Funtoo fly: NET Optimizations

Thanks for the info ryo!
I will leave the post so maybe someone contributes some effective optimization;

Offline

#4 2013-03-26 07:01:06

Deklan
Member
From: Porto Alegre, RS - Brazil
Registered: 2012-10-07
Posts: 24

Re: Funtoo fly: NET Optimizations

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

Offline

#5 2013-05-03 21:18:09

Deklan
Member
From: Porto Alegre, RS - Brazil
Registered: 2012-10-07
Posts: 24

Re: Funtoo fly: NET Optimizations

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:

/sbin/sysctl -p

Font: Wiki Sabayon Linux

Offline

#6 2013-05-03 23:06:09

Azerthoth
Moderator
Registered: 2010-10-25
Posts: 33

Re: Funtoo fly: NET Optimizations

Yes because blindly writing to your sysctl.conf from a 4 year old article is a good idea.

Sarcasm aside, this is a bad idea on many levels.

Offline

Board footer

Powered by FluxBB