Re: using iperf with small buffers
On Thu, Apr 08, 2004 at 01:34:41PM -0400, jesse butler wrote:
> Good thought, but not quite on. I'm running Solaris, which doesn't much
> care what your buffer size is.
> There is this peice of code in Settings.cpp, though:
>
> case 'w': // TCP window size (socket buffer size)
> mTCPWin = (long) byte_atof( optarg );
> if ( mTCPWin < 2048 ) {
> printf( warn_window_small, mTCPWin );
> }
> break;
>
> So, now I'd like to snip this bit and rebuild, but am not sure if that
> will affect operation at all. If anyone has any warnings, please let me
> know. In that case, I'll have to go back to ttcp.
*sigh* That's what I get for not actually checking the code. I'm not sure
why that's there.
At any rate, removing that check won't hurt anything and will give you the
desired behavior.
Jon
--
Jon Dugan | Senior Network Engineer, NCSA Network Research
jdugan --at-- ncsa.uiuc.edu | 269 CAB, 605 E Springfield, Champaign, IL 61820
217-244-7715 | http://www.ncsa.uiuc.edu/~jdugan/