Linux looking for program to aid in tweaking cable connection!

Get help and discuss anything related to tweaking your internet connection, as well as the different tools and registry patches on the site. TCP Optimizer settings and Analyzer results should be posted here.
Post Reply
User avatar
skip_knob
Member
Posts: 77
Joined: Tue Oct 23, 2001 11:03 pm

Linux looking for program to aid in tweaking cable connection!

Post by skip_knob »

Guys Im new to Linux and after doing the speedguide analyzer test I realized that I have to open up my RCVWINDOW more. Of course because Im using RED HAT 8.0 OS I chave know I dea how to edit rwin...

Does anyone here know what I can do or where to go to find the answers?
Stu
Regular Member
Posts: 341
Joined: Tue Aug 10, 1999 12:00 am

Post by Stu »

Okay, first you should try doing a search in this forum--because I know this has been asked and answered before.

That being said, the Linux kernel uses auto-tuning when transmitting and receiving data--which means it has a send and receive window that grows according to the capabilities of the machine you are communicating with. So, in essense, when you set your windows you are actually setting the maximum size they can grow to--therefore, if you set it to a size that will likely never be reached that's good enough. The only problem you may run into is that you set it to low (I set mine to half a MB and that does me fine). On a side note, because of the auto-tuning feature the "speed analyzers" that you can use on the web will still report your windows as being in need of a larger value, when they are actually fine.

To do the actual settings, add something like this to /etc/sysctl.conf:

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 = 1

The 524288 is your window value, you can replace it with a value that it is a multiple of or is a multiple of it (e.g. 262144 = 524288 / 2, 1048576 = 524288 * 2). Then, do the following to install it right away:

sysctl -p
/etc/rc.d/init.d/network restart

And that'll do it. I explained what all those settings mean in a previous post to this forum, so if you are interested do a search in here.
User avatar
Cypher
Posts: 2717
Joined: Tue Jul 02, 2002 12:00 pm
Location: Returning video tapes

Post by Cypher »

I'm hoping Danjr will write a Cablenut for Linux since he's using it now. The auto tuning feature could be why I personaly have'nt seen any tweak utilities for this. My speeds are fast at default in *nix. Try using a lighter browser such as Phoenix or Galeon. I prefer Phoenix myself. ;)
Stu
Regular Member
Posts: 341
Joined: Tue Aug 10, 1999 12:00 am

Post by Stu »

Actually, those settings help in Linux. The maximum window size is 64 KB without window scaling enabled, and many distros don't have window scaling enabled by default (and they have the maximum window size set to 65535).
User avatar
Cypher
Posts: 2717
Joined: Tue Jul 02, 2002 12:00 pm
Location: Returning video tapes

Post by Cypher »

I'll have to try it out. ;)
Post Reply