ikshwak / iperf

Automatically exported from code.google.com/p/iperf
Other
0 stars 0 forks source link

setting of window size should be explicit #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Presently we set the window size to DEFAULT_TCP_BUFSIZE.  

This has two issues:

1. it overrides the system default implicitly
1. it may prevent the system's auto tuning from working

Instead we should set socket_snd_bufsize and socket_rcv_bufsize to zero by 
default (probably in 
iperf_defaults()).  Then when it comes time to set the socket_snd_bufsize and 
socket_rcv_bufsize 
only set it if it isn't zero.

for the present iperf the tool should use -w to set both socket_snd_bufsize and 
socket_rcv_bufsize, but in the long term we probably want options to set the 
individually.

Original issue reported on code.google.com by jdugan.e...@gmail.com on 16 Jun 2009 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by bltier...@gmail.com on 13 Nov 2009 at 3:27