This link has been bookmarked by 10 people . It was first bookmarked on 25 Oct 2007, by someone privately.
-
14 Jun 13
-
05 Jul 11
-
27 Aug 10
-
03 Apr 10
-
18 Nov 09
-
20 Jan 09
-
11 Aug 08
Ron Hale-Evansa small snippet (not an authoritative guide or HOW-TO) on how to tweak Linux for broadband
-
01 Mar 08
-
"How do I tweak Linux for broadband?"
-
This document applies to kernel 2.4.x, and will also work on the 2.6.x kernel provided it is compiled with /proc file system support enabled
-
RWIN (Receive WINdow) value
-
in the "Linux World" this value is dynamic
-
Typically, you will notice that your connection is actually slower than the default settings if your window size is too big. That being said, you should try out different size window sizes and see what works best for you--but, in most cases either 512 KB, 256 KB, or 128 KB seem to do the trick quite nicely.
-
- rmem_default - Receive Window default value
- rmem_max - Receive Window maximum value
- wmem_default - Send Window default value
- wmem_max - Send Window maximum value
where these settings actually reside and what they mean. The first set of four are located in /proc/sys/net/core. They are:
-
The second set of eleven are located in /proc/sys/net/ipv4.
-
add the following to /etc/sysctl.conf (substituting your window size in place of 524288, if necessary):
# Tweaks for faster broadband...
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1Then to have the settings take effect immediately, run:
sysctl -p
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.