public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: socket performance (was Re: Building cygwin1.dll)
Date: Tue, 10 Jan 2012 08:46:00 -0000	[thread overview]
Message-ID: <20120110084610.GA2292@calimero.vinschen.de> (raw)
In-Reply-To: <4F0B178D.8050000@sh.cvut.cz>

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

  reply	other threads:[~2012-01-10  8:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04 13:49 Building cygwin1.dll Johan van den Berg
2012-01-04 14:25 ` marco atzeri
2012-01-04 19:26   ` Johan van den Berg
2012-01-09 13:44     ` socket performance (was Re: Building cygwin1.dll) Corinna Vinschen
2012-01-09 16:37       ` Václav Zeman
2012-01-10  8:46         ` Corinna Vinschen [this message]
2012-01-10  7:22       ` socket performance Henry S. Thompson
2012-01-10  7:53         ` Daniel Colascione
2012-01-10 12:46       ` socket performance (was Re: Building cygwin1.dll) Johan van den Berg
2012-01-10 14:46         ` Corinna Vinschen
2012-01-10 15:25           ` Steven Hartland
2012-01-10 16:28             ` Corinna Vinschen
2012-01-10 16:39               ` Corinna Vinschen
2012-01-10 17:05               ` Steven Hartland
2012-01-10 17:27                 ` Corinna Vinschen
2012-01-10 18:23                   ` Steven Hartland
2012-01-11 14:05                     ` Corinna Vinschen
2012-01-11 14:20                       ` Carson Chittom
2012-01-11 14:43                         ` Corinna Vinschen
2012-01-11  6:25           ` Johan van den Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120110084610.GA2292@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).