From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: Network performance with small packets Date: Wed, 2 Feb 2011 17:48:41 +0200 Message-ID: <20110202154841.GB12738@redhat.com> References: <20110201215603.GA31348@redhat.com> <1296601197.26937.833.camel@localhost.localdomain> <20110202044002.GB3818@redhat.com> <1296626748.26937.852.camel@localhost.localdomain> <1296627549.26937.856.camel@localhost.localdomain> <20110202062950.GD3818@redhat.com> <1296630891.26937.870.camel@localhost.localdomain> <1296632029.26937.871.camel@localhost.localdomain> <20110202104946.GC8505@redhat.com> <1296661371.25430.13.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sridhar Samudrala , Steve Dobbelstein , David Miller , kvm@vger.kernel.org, mashirle@linux.vnet.ibm.com, netdev@vger.kernel.org To: Shirley Ma Return-path: Received: from mx1.redhat.com ([209.132.183.28]:10258 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754445Ab1BBPs6 (ORCPT ); Wed, 2 Feb 2011 10:48:58 -0500 Content-Disposition: inline In-Reply-To: <1296661371.25430.13.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Feb 02, 2011 at 07:42:51AM -0800, Shirley Ma wrote: > On Wed, 2011-02-02 at 12:49 +0200, Michael S. Tsirkin wrote: > > On Tue, Feb 01, 2011 at 11:33:49PM -0800, Shirley Ma wrote: > > > On Tue, 2011-02-01 at 23:14 -0800, Shirley Ma wrote: > > > > w/i guest change, I played around the parameters,for example: I > > could > > > > get 3.7Gb/s with 42% CPU BW increasing from 2.5Gb/s for 1K message > > > > size, > > > > w/i dropping packet, I was able to get up to 6.2Gb/s with similar > > CPU > > > > usage. > > > > > > I meant w/o guest change, only vhost changes. Sorry about that. > > > > > > Shirley > > > > Ah, excellent. What were the parameters? > > I used half of the ring size 129 for packet counters, but the > performance is still not as good as dropping packets on guest, 3.7 Gb/s > vs. 6.2Gb/s. > > Shirley And this is with sndbuf=0 in host, yes? And do you see a lot of tx interrupts? How packets per interrupt? -- MST