From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUIVW-0005XP-4p for qemu-devel@nongnu.org; Fri, 02 Nov 2012 10:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUIVQ-0006UG-4I for qemu-devel@nongnu.org; Fri, 02 Nov 2012 10:46:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUIVP-0006U1-Sx for qemu-devel@nongnu.org; Fri, 02 Nov 2012 10:45:56 -0400 Date: Fri, 2 Nov 2012 16:48:12 +0200 From: "Michael S. Tsirkin" Message-ID: <20121102144812.GA29519@redhat.com> References: <20121022111824.GA6916@amit.redhat.com> <1350913800.90009.YahooMailClassic@web163904.mail.gq1.yahoo.com> <20121023125503.GG19977@stefanha-thinkpad.redhat.com> <20121101091918.GA19405@amit.redhat.com> <20121101120410.GC3993@redhat.com> <20121101160721.GA9176@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] virtio: limit avail bytes lookahead List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Amit Shah , Edivaldo de Araujo Pereira , qemu-devel , Anthony Liguori , Bug 1066055 <1066055@bugs.launchpad.net> On Fri, Nov 02, 2012 at 11:18:18AM +0100, Stefan Hajnoczi wrote: > On Thu, Nov 1, 2012 at 5:07 PM, Michael S. Tsirkin wrote: > > Commit 0d8d7690850eb0cf2b2b60933cf47669a6b6f18f introduced > > a regression in virtio-net performance because it looks > > into the ring aggressively while we really only care > > about a single packet worth of buffers. > > To fix, add parameters limiting lookahead, and > > use in virtqueue_avail_bytes. > > > > Signed-off-by: Michael S. Tsirkin > > Reported-by: Edivaldo de Araujo Pereira > > Nice, much simpler than the ideas I had. > > Reviewed-by: Stefan Hajnoczi Anthony could you apply this out of band please so this stops biting people? Thanks, MST