Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 1997 06:13:49 +0200 (EET)
From:      Petri Helenius <pete@sms.fi>
To:        "Louis A. Mamakos" <louie@TransSys.COM>
Cc:        dg@root.com, hal@vailsys.com, hackers@freebsd.org
Subject:   Re: best mtu for lo0? 
Message-ID:  <199701290413.GAA27096@silver.sms.fi>
In-Reply-To: <199701290339.WAA00536@whizzo.transsys.com>
References:  <199701281936.LAA16507@root.com> <199701290339.WAA00536@whizzo.transsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Louis A. Mamakos writes:
 > > 
 > >    Pete is likely correct that window < MTU is a problem (that's obvious,
 > > right?), but he's wrong that this is occuring in recent versions of FreeBSD.
 > > The send/receive windows are set to 3*MTU, and for lo0 this is 49152 bytes.
 > 
 > Even on other systems which don't have this optimization, what's the big
 > harm in running stop-and-wait on the loopback interface?  It's not as if
 > there are queues in the networks which you can fill and signficant
 > propagation delays.   I don't recall exactly how the queuing is done
 > these days and how ipintr() is invoked, but I'll bet that before the
 > loopback output function returns, there's a software interrupt invoked to
 > process the packet just queued up for ip_input()...
 > 
You'll switch your process context between the receiving and sending process
once every window. If you would be windowing, you'll doing that less often.
Additionally, that gives usually better performance since you have
processes to schedule if you for example have to page something in.

Pete



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701290413.GAA27096>