Received: from eggs.gnu.org ([2001:4830:134:3::10]:35160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqJQm-0004Vi-7Z for qemu-devel@nongnu.org; Tue, 10 Dec 2013 04:16:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqJQg-0005ou-9O for qemu-devel@nongnu.org; Tue, 10 Dec 2013 04:16:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqJQf-0005og-WE for qemu-devel@nongnu.org; Tue, 10 Dec 2013 04:16:34 -0500 Date: Tue, 10 Dec 2013 10:16:19 +0100 From: Stefan Hajnoczi Message-ID: <20131210091619.GB6608@stefanha-thinkpad.redhat.com> References: <1386341073-6584-1-git-send-email-v.maffione@gmail.com> <20131208121117.GD6841@redhat.com> <20131209103026.GC15055@redhat.com> <20131209111431.GG15055@redhat.com> <20131209124230.GC9611@stefanha-thinkpad.redhat.com> <20131209135500.GB15574@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131209135500.GB15574@redhat.com> Subject: Re: [Qemu-devel] [PATCH] net: QEMU_NET_PACKET_FLAG_MORE introduced List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Stefan Hajnoczi , Jason Wang , mjt@tls.msk.ru, qemu-devel@nongnu.org, Vincenzo Maffione , lcapitulino@redhat.com, peter.crosthwaite@petalogix.com, owasserm@redhat.com, Gerd Hoffmann , Yan Vugenfirer , "Edgar E. Iglesias" , akong@redhat.com, quintela@redhat.com, Alexander Graf , aliguori@amazon.com, marcel.a@redhat.com, sw@weilnetz.de, Giuseppe Lettieri , Luigi Rizzo , Dmitry Fleytman , mark.langsdorf@calxeda.com, Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= On Mon, Dec 09, 2013 at 03:55:00PM +0200, Michael S. Tsirkin wrote: > On Mon, Dec 09, 2013 at 01:42:30PM +0100, Stefan Hajnoczi wrote: > > So the effect of batching should be relatively small on latency. In > > fact, it's almost like sendmmsg(2)/recvmmsg(2) but using a > > one-packet-at-a-time interface. > > > > Does this sound right? > > > > Stefan > > Why would it be small? Consider a queue of 256 packets. > You are sending out a single short packet, followed > by a burst of 255 larger packets. > the single packet is not transmitted until qemu completes > processing 255 larger ones. Seems like my intuition is wrong. I figured QEMU processing those 255 packets is quick. If zero-copy is possible then we just need to put the address/length into a ring before we flush the packets to the host kernel. The netperf results do show a regression so we need to understand that better. Stefan