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. 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 :-( > > Having a default value set to 1kb is a non sense here. However, this > default > value is difficult to set if we haven't established a connection yet, so > maybe the best is to avoid establishing one and let the default system > value > be selected. > > I will have a look at the current code and see how this can work this way. >
