You are not logged in.

#1 2005-08-21 09:30:18

demonus
Member
Registered: 2005-01-31
Posts: 62

tcp stack tuning

recently I've been playing with TCP stack in the kernel, and found an option that could give the same low latency response as in windows (especially if you compare firefox on windows and on linux)

sysctl net.ipv4.tcp_low_latency = 1

now tcp connections seem to be established a bit faster
do you also have some nice tips on tuning the TCP stack?

Offline

#2 2005-08-22 01:51:40

grail
Member
Registered: 2005-02-22
Posts: 70

Re: tcp stack tuning

I add the following tweaks to my linux boxes:

echo 2097136 > /proc/sys/net/core/rmem_max
echo 2097136 > /proc/sys/net/core/wmem_max
echo 524284 > /proc/sys/net/core/rmem_default
echo 524284 > /proc/sys/net/core/wmem_default
echo "4096    87380   2097136" > /proc/sys/net/ipv4/tcp_rmem
echo "4096    65536   2097136" > /proc/sys/net/ipv4/tcp_wmem
echo 1 > /proc/sys/net/ipv4/tcp_low_latency

Some information about tcp/ip tuning can be found here:

http://www-didc.lbl.gov/TCP-tuning/linux.html
and   
http://ipsysctl-tutorial.frozentux.net/ … ables.html

Offline

#3 2005-08-22 07:20:23

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: tcp stack tuning

interesting, i might give these a go too. thx for a good hint on what to do today, hooray!  lol


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

Board footer

Powered by FluxBB