Re: Cygwin TCP slow

2017-01-04 Thread Daniel Havey
Resending in plain text: Hey Brian, I took a little time off for Christmas. The official Windows guidance for autotuning is here. https://blogs.technet.microsoft.com/networking/2016/08/11/an-update-on-windows-tcp-autotuninglevel/ Please don't turn off Window Scaling. The RFC for Window Scaling wa

Re: Cygwin TCP slow

2016-12-02 Thread Mark Geisert
Daniel Havey wrote: 2.) Here is the cygcheck.out file with all that information. The make is failing because of some device configuration. /home/dahavey/oss/src/newlib-cygwin/winsup/cygwin/gendevices: shilka command missing? - No such file or directory make[3]: *** [Makefile:720: /home/dahavey/o

Re: Cygwin TCP slow

2016-12-02 Thread Brian Inglis
On 2016-12-02 13:29, Daniel Havey wrote: > On Wed, Nov 30, 2016 at 1:13 PM, Lee wrote: >> I don't know if this qualifies as a simple test case, but if you >> don't already have wireshark, get it from >> https://www.wireshark.org/download.html >> get iperf-2.0.9.tar.gz from https://sourceforge.net/

Re: Cygwin TCP slow

2016-11-30 Thread Lee
I don't know if this qualifies as a simple test case, but if you don't already have wireshark, get it from https://www.wireshark.org/download.html get iperf-2.0.9.tar.gz from https://sourceforge.net/projects/iperf2/files/ change the setsockopt calls on lines 125 & 132 of src/tcp_window_size.c to

Re: Cygwin TCP slow

2016-11-30 Thread Brian Inglis
On 2016-11-30 07:49, Lee wrote: >> If you also provided a Cygwin port of iperf3 > Any hints on how to do that? If you are running under Cygwin, first install cygport (and let setup install all its dependencies), and any iperf3 dependencies, then read the cygport html doc, and create a minimal pa

Re: Cygwin TCP slow

2016-11-30 Thread Lee
> If you also provided a Cygwin port of iperf3 Any hints on how to do that? Trying to build using the i686-w64-mingw32-gcc cross-compiler dies because nanosleep is missing. How to figure out what needs to be installed to get that function? $ ./configure --prefix=/usr/local --build=i686-pc-cygw

Re: Cygwin TCP slow

2016-11-29 Thread Brian Inglis
On 2016-11-29 19:38, Sam Habiel wrote: > On Tue, Nov 29, 2016 at 8:08 PM, Daniel Havey wrote: >> On Mon, Nov 28, 2016 at 12:51 PM, Brian Inglis >> wrote: >>> On 2016-11-28 12:54, Daniel Havey wrote: We have had complaints from several large hardware vendors that Windows networking is sl

Re: Cygwin TCP slow

2016-11-29 Thread Sam Habiel
"Then we made a private build of Windows that ignores SO_RCVBUF and SO_SNDBUF and just always uses autotuning no matter what the app does." Out of curiosity, how did you do that? Do you work for Microsoft, or is there something fantastic I missed about building your own modified DLLs? On Tue, Nov

Re: Cygwin TCP slow

2016-11-29 Thread Daniel Havey
Okay, I will find some time to produce a patch. It might take a while though because I have a day job :). BTW, what the heck is an STC? Here is an experiment with three machines like this: OOO The one in the middle has a 50ms of delay (25ms in each direction). Here are the results from C

Re: Cygwin TCP slow

2016-11-28 Thread Brian Inglis
On 2016-11-28 12:54, Daniel Havey wrote: > We have had complaints from several large hardware vendors that > Windows networking is slow for apps like iperf that are used to > measure throughput. Iperf on Windows is compiled against the > cygwin1.dll. We have root caused the problem to a couple of

Cygwin TCP slow

2016-11-28 Thread Daniel Havey
Hello, We have had complaints from several large hardware vendors that Windows networking is slow for apps like iperf that are used to measure throughput. Iperf on Windows is compiled against the cygwin1.dll. We have root caused the problem to a couple of lines of code in net.cc that set SO_RCVBU