Skip to contentSkip to conversation

TCP throttling

DISCUSSION Al Boldi 4 participants 7 messages Sep 19, 2005 – Sep 20, 2005

Subsystems (2)
lore
Share & tools
lore

Al Boldi

author
#0 lore raw

Is there a way to tune the throttling nature of a TCP connection?

i.e:
One TCP connection is slower than two over the same bandwidth limited link. Can this one TCP connection be tuned to make full use of the link-bandwidth?

Thanks!

--
Al

author
#2 lore raw
Quoted 5 lines · Stephen Hemminger

You probably need to increase the maximum socket buffer sizes. Linux defaults are conservative to avoid running servers out of memory.

http://www.psc.edu/networking/projects/tcptune/#Linux

Thanks for the great link! It kept me up all night.

I managed to crash the server running out of memory. Don't ask what numbers I used, I just went overboard. I played with these numbers before, but never imagined that their scale would be in the millions.

Could you suggest sane values for 2.4/2.6 on a 100mbit link?

Thanks!

--
Al

#3 lore raw
Quoted 7 lines · Al Boldi
Quoted 5 lines · Stephen Hemminger

You probably need to increase the maximum socket buffer sizes. Linux defaults are conservative to avoid running servers out of memory.

http://www.psc.edu/networking/projects/tcptune/#Linux

Quoted 7 lines

Thanks for the great link! It kept me up all night.

I managed to crash the server running out of memory. Don't ask what numbers I used, I just went overboard. I played with these numbers before, but never imagined that their scale would be in the millions.

Could you suggest sane values for 2.4/2.6 on a 100mbit link?

Well, perhaps the sane, conservative values are the one already calculated by the kernel? Just add more memory to your machine and the sane values will go up accordingly? :-)

- Arnaldo

#5 lore raw
Quoted 5 lines · On Tue, 20 Sep 2005 07:19:03 +0200 (CEST) Mikael Abrahamsson…
Quoted 1 line · Al Boldi

Could you suggest sane values for 2.4/2.6 on a 100mbit link?

Go for approx 2-8 megs of TCP window size and buffers.

I use the following for testing over 1GE. You want at least 2x the delay bandwidth product.

/etc/sysctl.conf

# increase Linux TCP buffer limits
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
# increase Linux autotuning TCP buffer limits
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 65536 8388608
author
#6 lore raw
Quoted 9 lines · Stephen Hemminger
Quoted 4 lines · On Tue, 20 Sep 2005 07:19:03 +0200 (CEST) Mikael Abrahamsson…
Quoted 1 line · Al Boldi

Could you suggest sane values for 2.4/2.6 on a 100mbit link?

Go for approx 2-8 megs of TCP window size and buffers.

I use the following for testing over 1GE. You want at least 2x the delay bandwidth product.

ping 10.1 -s56

(RTT=0.250ms) * 100mbit = 3125000 Bytes

How much increase in thruput should be expected?

Thanks!

--
Al