lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C3DD5EB.9070908@tmr.com>
Date:	Wed, 14 Jul 2010 11:21:15 -0400
From:	Bill Davidsen <davidsen@....com>
To:	Ed W <lists@...dgooses.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: 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@....com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ