netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TCP throttling
@ 2005-09-19  3:53 Al Boldi
  2005-09-19 18:20 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Al Boldi @ 2005-09-19  3:53 UTC (permalink / raw)
  To: linux-net; +Cc: netdev


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-19  3:53 TCP throttling Al Boldi
@ 2005-09-19 18:20 ` Stephen Hemminger
  2005-09-20  3:54   ` Al Boldi
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Hemminger @ 2005-09-19 18:20 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-net, netdev

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-19 18:20 ` Stephen Hemminger
@ 2005-09-20  3:54   ` Al Boldi
  2005-09-20  4:44     ` Arnaldo Carvalho de Melo
  2005-09-20  5:19     ` Mikael Abrahamsson
  0 siblings, 2 replies; 7+ messages in thread
From: Al Boldi @ 2005-09-20  3:54 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: linux-net, netdev

Stephen Hemminger wrote:
> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-20  3:54   ` Al Boldi
@ 2005-09-20  4:44     ` Arnaldo Carvalho de Melo
  2005-09-20  5:19     ` Mikael Abrahamsson
  1 sibling, 0 replies; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2005-09-20  4:44 UTC (permalink / raw)
  To: Al Boldi; +Cc: Stephen Hemminger, linux-net, netdev

On 9/20/05, Al Boldi <a1426z@gawab.com> wrote:
> Stephen Hemminger wrote:
> > 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?

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-20  3:54   ` Al Boldi
  2005-09-20  4:44     ` Arnaldo Carvalho de Melo
@ 2005-09-20  5:19     ` Mikael Abrahamsson
  2005-09-20 16:19       ` Stephen Hemminger
  1 sibling, 1 reply; 7+ messages in thread
From: Mikael Abrahamsson @ 2005-09-20  5:19 UTC (permalink / raw)
  To: Al Boldi; +Cc: Stephen Hemminger, linux-net, netdev

On Tue, 20 Sep 2005, Al Boldi wrote:

> 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.

-- 
Mikael Abrahamsson    email: swmike@swm.pp.se

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-20  5:19     ` Mikael Abrahamsson
@ 2005-09-20 16:19       ` Stephen Hemminger
  2005-09-20 18:54         ` Al Boldi
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Hemminger @ 2005-09-20 16:19 UTC (permalink / raw)
  To: Mikael Abrahamsson; +Cc: Al Boldi, linux-net, netdev

On Tue, 20 Sep 2005 07:19:03 +0200 (CEST)
Mikael Abrahamsson <swmike@swm.pp.se> wrote:

> On Tue, 20 Sep 2005, Al Boldi wrote:
> 
> > 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TCP throttling
  2005-09-20 16:19       ` Stephen Hemminger
@ 2005-09-20 18:54         ` Al Boldi
  0 siblings, 0 replies; 7+ messages in thread
From: Al Boldi @ 2005-09-20 18:54 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Mikael Abrahamsson, linux-net, netdev

Stephen Hemminger wrote:
> On Tue, 20 Sep 2005 07:19:03 +0200 (CEST)
> Mikael Abrahamsson <swmike@swm.pp.se> wrote:
> > On Tue, 20 Sep 2005, Al Boldi wrote:
> > > 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-20 18:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-19  3:53 TCP throttling Al Boldi
2005-09-19 18:20 ` Stephen Hemminger
2005-09-20  3:54   ` Al Boldi
2005-09-20  4:44     ` Arnaldo Carvalho de Melo
2005-09-20  5:19     ` Mikael Abrahamsson
2005-09-20 16:19       ` Stephen Hemminger
2005-09-20 18:54         ` Al Boldi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).