A long TCP tuning question
May 4, 2007 5:24 PM
Subscribe
I recently bought a new gigabit router and NIC cards and they're not running as fast as I hoped.
I recently bought new gigabit Ethernet cards (trendnet teg-pcitxr’s) and a router (a dlink GameLounge).
The cards were installed in my file server running slackware 10.1.0 (2.4.29) and a Windows 2000 computer. There is also an old iMac on the network (the kind w/ the monitor coming out of the half-sphere), which I assume has a 100Mb card.
I’ve been using iperf to see what kind of transfer rates I can get. The results are that it’s fast-ish when the server (iperf –s) is Win (~252Mb/sec) and Linux the client, Pretty slow when the server is Linux (~67Mb/sec) and the clinet Win.
The iMac is the best when it’s the client (~93Mb/sec, I assume it's max) but slower when it’s serving (~67Mb/sec) to either the Win or Linux computers.
From what I could gather through online reading I need to tune my tcp settings.
On the linux computer I tried adding each of these settings in /etc/sysctl.conf and then running sysctl –p.
(from http://www.acc.umu.se/~maswan/linux-netperf.txt)
net/core/rmem_max = 8738000
net/core/wmem_max = 6553600
net/ipv4/tcp_rmem = 8192 873800 8738000
net/ipv4/tcp_wmem = 4096 655360 6553600
(from http://dsd.lbl.gov/TCP-tuning/linux.html)
# increase TCP max buffer size
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# increase Linux autotuning TCP buffer limits
# min, default, and max number of bytes to use
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
On the windows computer I downloaded DrTCP and set the Tcp Receive Window to 65535, tried turning Windows Scaling on. The network card had an advanced setting for JumboFrames. I set that to the max, 7K, and then tried entering 7000 in the MTU in DrTCP. There was a lot of rebooting as I fiddled with all this.
In the end, nothing much changed, and I feel that particular all-drained-out-after-futzing-with-computers malaise.
Is there something I’m missing? I realize this is kind of an open-ended question because the more I read about this the more I realize how complicated it all is, but I’m hoping someone who actually knows about TCP tuning might be able to shed some light on the situation for me.
posted by JulianDay to computers & internet (23 comments total)
posted by autojack at 5:35 PM on May 4, 2007