Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EooZo-0002gW-Nf for qemu-devel@nongnu.org; Tue, 20 Dec 2005 15:59:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EooZm-0002gD-Vs for qemu-devel@nongnu.org; Tue, 20 Dec 2005 15:59:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EooZm-0002gA-Ro for qemu-devel@nongnu.org; Tue, 20 Dec 2005 15:59:14 -0500 Received: from [212.63.36.242] (helo=gwyn.kn-bremen.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Eoocx-0001SA-Qn for qemu-devel@nongnu.org; Tue, 20 Dec 2005 16:02:32 -0500 From: Juergen Lock Date: Tue, 20 Dec 2005 21:56:11 +0100 Subject: Re: [Qemu-devel] [patch] Poor user-net performance. Message-ID: <20051220205611.GA10436@saturn.kn-bremen.de> References: <200512182328.27625.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512182328.27625.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On Sun, Dec 18, 2005 at 11:28:27PM +0000, Paul Brook wrote: > Dan mentioned he was seeing very poor network performance when using user-net. > It turns out this is because packets were getting dropped (the NIC buffers > were full), and the slirp code doesn't throttle properly when this occurs. > You end up with a bunch of packets getting sent to the guest, half of which > get dropped, then a delay until slirp retransmits. > > This is much more noticeable on Arm because the NIC only has a small memory > buffer. > > Teaching the slirp code how to do tcp backoff/window scaling is probably a > fair amount of work. The easy alternative is to throttle the slirp output > when we know the card's buffers are full. slirp has a convenient hook for > this, so it's a matter of adding the hooks to the hardware emulation. > > This increases arm user-net performance from painfully slow (~200kbit) to > guest CPU bound (~20Mbit). > Hmm is the patch supposed to work for i386 guests too? I get no dhcp response and network unreachable when i try to ssh to the host from the guest after manually ifconfig'ing, seem like the ne2k doesn't receive any packets. (FreeBSD/i386 host, linux i386 guest - kanotix livecd iso). The same works normally without the patch.