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 <yuanhan.liu at linux.intel.com> > --- > examples/vhost/main.c | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com> Thanks, Maxime
- [dpdk-dev] [PATCH v2 4/7] vhost: add dequeue zero cop... Xu, Qian Q
- [dpdk-dev] [PATCH v2 4/7] vhost: add dequeue zero... Yuanhan Liu
- [dpdk-dev] [PATCH v2 4/7] vhost: add dequeue ... Xu, Qian Q
- [dpdk-dev] [PATCH v2 4/7] vhost: add dequ... Maxime Coquelin
- [dpdk-dev] [PATCH v2 4/7] vhost: add... Xu, Qian Q
- [dpdk-dev] [PATCH v2 4/7] vhost: add... Xu, Qian Q
- [dpdk-dev] [PATCH v2 4/7] vhost: add... Maxime Coquelin
- [dpdk-dev] [PATCH v2 5/7] vhost: add a flag to enable dequ... Yuanhan Liu
- [dpdk-dev] [PATCH v2 5/7] vhost: add a flag to enable... Maxime Coquelin
- [dpdk-dev] [PATCH v2 6/7] examples/vhost: add an option to... Yuanhan Liu
- [dpdk-dev] [PATCH v2 6/7] examples/vhost: add an opti... Maxime Coquelin
- [dpdk-dev] [PATCH v2 7/7] net/vhost: add an option to enab... Yuanhan Liu
- [dpdk-dev] [PATCH v2 7/7] net/vhost: add an option to... Maxime Coquelin
- [dpdk-dev] [PATCH v3 0/7] vhost: add dequeue zero copy sup... Yuanhan Liu
- [dpdk-dev] [PATCH v3 1/7] vhost: simplify memory regi... Yuanhan Liu
- [dpdk-dev] [PATCH v3 2/7] vhost: get guest/host physi... Yuanhan Liu
- [dpdk-dev] [PATCH v3 3/7] vhost: introduce last avail... Yuanhan Liu
- [dpdk-dev] [PATCH v3 4/7] vhost: add dequeue zero cop... Yuanhan Liu
- [dpdk-dev] [PATCH v3 5/7] vhost: add a flag to enable... Yuanhan Liu