X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 10 Jan 2012 09:46:10 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: socket performance (was Re: Building cygwin1.dll) Message-ID: <20120110084610.GA2292@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <95814509-4E08-44C6-8E59-026225EC0FF5 AT playsafesa DOT com> <4F04613B DOT 6050505 AT gmail DOT com> <20120109134311 DOT GH15470 AT calimero DOT vinschen DOT de> <4F0B178D DOT 8050000 AT sh DOT cvut DOT cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F0B178D.8050000@sh.cvut.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 9 17:36, Václav Zeman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 01/09/2012 02:43 PM, Corinna Vinschen wrote: > > Johan, > > > > please don't http://cygwin.com/acronyms/#TOFU. Thanks. > > > > On Jan 4 21:25, Johan van den Berg wrote: > >> I am very happy to report that increasing the send and receive > >> buffers has done the job (at least, on a 10MBit link but will be > >> testing a 100Mbit in a few days). I calculated the ideal size as > >> per > >> http://www.ibm.com/developerworks/linux/library/l-hisock/index.html > > > >> > > it's nice to know that you could increase the performance by > > increasing the buffer sizes. However, I'm reluctant to implement > > this as a generic option. As far as I know the socket buffers are > > taken from nonpaged pool, so generically using 2 Meg buffers will > > take a lot of precious resources. > > > > I made a test in a local LAN between Linux and a W7 64 bit machine, > > and I didn't see a lot of difference between 64K, 2 Megs, or > > letting the OS decide. So I'm wondering if it's not the best > > option to let the OS decide starting with Vista and later. > Testing it on LAN will not show much. The buffer/TCP window size is > important for high latency * bandwidth product connections. Right, but that's not the default scenario. Cygwin's job in this case is to provide a POSIX socket API. It neither takes over the job of the TCP stack, nor does it know the circumstances in which the socket will be used. How should it decide what the ideal buffer sizes are? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple