lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Raise initial congestion window size / speedup slow start?
Ed W wrote:
> Hi, my network connection looks like 500Kbits with a round trip latency
> of perhaps 1s+ (it's a satellite link).
>
> From what I can see the linux initial congestion window is signficantly
> limiting me here, with slow start taking many many seconds to open up
> the window wide enough to get the data flowing? For protocols like http
> this is really hurting with all the short lived connections never really
> getting up to speed. (throw in some random packet loss and things
> really screech to a halt)
>
> Reading around there appear to be several previous attempts to modify
> the kernel to start with a slightly wider initial congestion window, say
> 10 packets. (Seems even google did some work on this and agreed that a
> small of initial cwd to 10 ish, would help even many non satellite
> users?) However, all the work I can find is quite old and doesn't seem
> to give me much of a leg up in terms of experimenting with such changes
> on a modern kernel?
>
> Does someone have some pointers on where to look to modify initial
> congestion window please?
>
Are you sure that's the issue? The backlog is in incoming, is it not?

Having dealt with moderately long delays push TB between timezones, have you set
your window size up? Set /proc/sys/net/ipv4/tcp_adv_win_scale to 5 or 6 and see
if that helps. You may have to go into /proc/sys/net/core and crank up the
rmem_* settings, depending on your distribution.

This allows the server to push a lot of data without an ack, which is what you
want, the ack will be delayed by the long latency, so this helps. You can
calculate how large to make the setting, but "make it bigger until tcpdump never
shows the window size < 2k" is the best way, even a bit larger than that wont
hurt, although it will take a bit of memory.

--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot


\
 
 \ /
  Last update: 2010-07-14 17:23    [W:0.104 / U:8.752 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site