From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJ2CN-00026g-Aa for qemu-devel@nongnu.org; Thu, 27 Feb 2014 09:44:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJ2CH-0007wx-9W for qemu-devel@nongnu.org; Thu, 27 Feb 2014 09:44:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJ2CG-0007wj-Ut for qemu-devel@nongnu.org; Thu, 27 Feb 2014 09:44:25 -0500 Date: Thu, 27 Feb 2014 16:49:49 +0200 From: "Michael S. Tsirkin" Message-ID: <20140227144949.GA21933@redhat.com> References: <20140224152004.GC23185@stefanha-thinkpad.hitronhub.home> <20140227141744.GG30387@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140227141744.GG30387@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [snabb-devel] Re: Make virtio-net.c ring size configurable? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Luke Gorrie , "snabb-devel@googlegroups.com" , qemu-devel On Thu, Feb 27, 2014 at 03:17:44PM +0100, Stefan Hajnoczi wrote: > On Mon, Feb 24, 2014 at 05:14:04PM +0100, Luke Gorrie wrote: > > On 24 February 2014 16:20, Stefan Hajnoczi wrote: > > > > > Do you want the 1:1 mapping to achieve best performance or just to > > > simplify the coding? > > > > > > > We want to keep the real-time constraints on the data plane comfortable. > > > > The question I ask myself is: How long can I buffer packets during > > processing before something is dropped? > > > > 256 buffers can be consumed in 17 microseconds on a 10G interface. > > This is a good point. The virtio-net vring is too small at 256 buffers > for workloads that want to send/receive small packets at 10 Gbit/s line > rate. (Minimum UDP packet size is 52 bytes!) > > Michael: Luke has asked to increase the virtio-net virtqueue size. > Thoughts? > > Stefan Heh you want to increase the bufferbloat? Each buffer pointer takes up 16 bytes so we are using order-2 allocations as it is, anything more and it'll start to fail if hotplug happens long after boot. AFAIK baremetal does not push line rate with 1 byte payload either. -- MST