From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id F1AEC5A63 for ; Tue, 16 Aug 2016 04:28:46 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 15 Aug 2016 19:28:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,528,1464678000"; d="scan'208";a="1014949361" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga001.jf.intel.com with ESMTP; 15 Aug 2016 19:28:44 -0700 Date: Tue, 16 Aug 2016 10:37:15 +0800 From: Yuanhan Liu To: Rich Lane Cc: dev@dpdk.org, Huawei Xie Message-ID: <20160816023715.GL30752@yliu-dev.sh.intel.com> References: <1471291224-12755-1-git-send-email-rich.lane@bigswitch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471291224-12755-1-git-send-email-rich.lane@bigswitch.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] vhost: add back support for concurrent enqueue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 02:28:47 -0000 On Mon, Aug 15, 2016 at 01:00:24PM -0700, Rich Lane wrote: > Concurrent enqueue is an important performance optimization when the number > of cores used for switching is different than the number of vhost queues. > I've observed a 20% performance improvement compared to a strategy that > binds queues to cores. > > The atomic cmpset is only executed when the application calls > rte_vhost_enqueue_burst_mp. Benchmarks show no performance impact > when not using concurrent enqueue. > > Mergeable RX buffers aren't supported by concurrent enqueue to minimize > code complexity. I think that would break things when Mergeable rx is enabled (which is actually enabled by default). Besides that, as mentioned in the last week f2f talk, do you think adding a new flag RTE_VHOST_USER_CONCURRENT_ENQUEUE (for rte_vhost_driver_register()) __might__ be a better idea? That could save us a API, to which I don't object though. --yliu