From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 892CD1B44B for ; Wed, 28 Nov 2018 11:05:41 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 872433091791; Wed, 28 Nov 2018 10:05:40 +0000 (UTC) Received: from localhost (dhcp-192-209.str.redhat.com [10.33.192.209]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B9DD5D787; Wed, 28 Nov 2018 10:05:35 +0000 (UTC) Date: Wed, 28 Nov 2018 11:05:34 +0100 From: Jens Freimann To: Maxime Coquelin Cc: dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com Message-ID: <20181128100534.6oil7r2zj6popznl@jenstp.localdomain> References: <20181128094700.14598-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181128094700.14598-1-maxime.coquelin@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 28 Nov 2018 10:05:40 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] vhost: batch used descriptors chains write-back with packed ring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2018 10:05:41 -0000 On Wed, Nov 28, 2018 at 10:47:00AM +0100, Maxime Coquelin wrote: >Instead of writing back descriptors chains in order, let's >write the first chain flags last in order to improve batching. > >With Kernel's pktgen benchmark, ~3% performance gain is measured. > >Signed-off-by: Maxime Coquelin >--- > lib/librte_vhost/virtio_net.c | 37 ++++++++++++++++++++++------------- > 1 file changed, 23 insertions(+), 14 deletions(-) > Tested-by: Jens Freimann Reviewed-by: Jens Freimann