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?
Linux looking for program to aid in tweaking cable connection!
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.
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.