From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: Network performance with small packets Date: Thu, 14 Apr 2011 20:58:41 +0930 Message-ID: <87bp09ax7a.fsf@rustcorp.com.au> References: <20110127.130240.104065182.davem@davemloft.net> <20110202044222.GC3818@redhat.com> <201102091107.20270.rusty@rustcorp.com.au> <1299621444.25664.77.camel@localhost.localdomain> <1299637278.13202.61.camel@localhost.localdomain> <87fwqv4udl.fsf@rustcorp.com.au> <20110412200112.GA19729@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: habanero@linux.vnet.ibm.com, Shirley Ma , Krishna Kumar2 , David Miller , kvm@vger.kernel.org, netdev@vger.kernel.org, steved@us.ibm.com, Tom Lendacky , borntraeger@de.ibm.com To: "Michael S. Tsirkin" Return-path: Received: from ozlabs.org ([203.10.76.45]:57948 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214Ab1DNLiK (ORCPT ); Thu, 14 Apr 2011 07:38:10 -0400 In-Reply-To: <20110412200112.GA19729@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 12 Apr 2011 23:01:12 +0300, "Michael S. Tsirkin" wrote: > On Thu, Mar 10, 2011 at 12:19:42PM +1030, Rusty Russell wrote: > > Here's an old patch where I played with implementing this: > > ... > > > > > virtio: put last_used and last_avail index into ring itself. > > > > Generally, the other end of the virtio ring doesn't need to see where > > you're up to in consuming the ring. However, to completely understand > > what's going on from the outside, this information must be exposed. > > For example, if you want to save and restore a virtio_ring, but you're > > not the consumer because the kernel is using it directly. > > > > Fortunately, we have room to expand: > > This seems to be true for x86 kvm and lguest but is it true > for s390? Yes, as the ring is page aligned so there's always room. > Will this last bit work on s390? > If I understand correctly the memory is allocated by host there? They have to offer the feature, so if the have some way of allocating non-page-aligned amounts of memory, they'll have to add those extra 2 bytes. So I think it's OK... Rusty.