From: Maxime Coquelin Subject: Re: [PATCH v2 6/7] examples/vhost: add an option to enable dequeue zero copy Date: Mon, 26 Sep 2016 23:05:16 +0200 Message-ID: <96a4b7a4-ee4d-6253-fe6e-7474089e07d4@redhat.com> References: <1471939839-29778-1-git-send-email-yuanhan.liu@linux.intel.com> <1474604007-5221-1-git-send-email-yuanhan.liu@linux.intel.com> <1474604007-5221-7-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Yuanhan Liu , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 8D6E12BCD for ; Mon, 26 Sep 2016 23:05:19 +0200 (CEST) In-Reply-To: <1474604007-5221-7-git-send-email-yuanhan.liu@linux.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 09/23/2016 06:13 AM, Yuanhan Liu wrote: > Add an option, --dequeue-zero-copy, to enable dequeue zero copy. > > One thing worth noting while using dequeue zero copy is the nb_tx_desc > has to be small enough so that the eth driver will hit the mbuf free > threshold easily and thus free mbuf more frequently. > > The reason behind that is, when dequeue zero copy is enabled, guest Tx > used vring will be updated only when corresponding mbuf is freed. If mbuf > is not freed frequently, the guest Tx vring could be starved. > > Signed-off-by: Yuanhan Liu > --- > examples/vhost/main.c | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Maxime Coquelin Thanks, Maxime