FYI, I committed some modification to get rid of the default sizes. It should now default to the OS default value.
more inline... On Wed, Jun 23, 2010 at 4:16 PM, Alexander Christian <[email protected]> wrote: > > Hi, > > On Wed, 23 Jun 2010 11:49:53 +0200, Emmanuel Lecharny > <[email protected]> wrote: > > Some more insights : > > > > - the send and receive buffer size should be set to : RTT * bandwidth, > > where > > RTT is the round trip time for your network. If you have a 10Mbs > bandwidth, > > and if your latency when doing a ping to your server is 80ms, then the > > buffer size should be 0,08 * 10 000 000 / 8 = 100Kb (source : > > http://onlamp.com/pub/a/onlamp/2005/11/17/tcp_tuning.html). > > Yes, I found the same while searching for the "ideal buffer size". I also > thought about setting/resetting the buffer size during connection. You can't change it once the session is established, at least, on the server side. > But for > this I need the current bandwidth, which is, if it's not a connection > between two dedicated servers, but rather one dedicated server and a ADSL, > very complex I think. Other applications running on the same client can > have an impact ion the overall performance :-( > At this point, it's really about tuning. The default OS value should be fine 80% of the time, and if you know more about the real usage, then you can tune a bit more. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
