From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 6/6] examples/vhost: add an option to enable Tx zero copy Date: Tue, 23 Aug 2016 11:31:08 +0200 Message-ID: <2052249.1FX31XPDFZ@xps13> References: <1471939839-29778-1-git-send-email-yuanhan.liu@linux.intel.com> <1471939839-29778-7-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Maxime Coquelin To: Yuanhan Liu Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id B7458275D for ; Tue, 23 Aug 2016 11:31:33 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id o80so185182162wme.1 for ; Tue, 23 Aug 2016 02:31:33 -0700 (PDT) In-Reply-To: <1471939839-29778-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" 2016-08-23 16:10, Yuanhan Liu: > One thing worth noting while using Tx 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 Tx 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. I think you should explain this behaviour in the doc of the vhost flag.