Re: using iperf with small buffers
At 01:56 PM 4/8/2004 -0500, you wrote:
>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.
Since the tool was originally designed for non-experts, it's not surprising
there is some code to prevent a naive user from doing something dumb (in
the naive user's universe anyway) and not knowing it. I didn't remember it
was there, but I can see why we included it.
-Jim