From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [dpdk-stable] [PATCH v2 2/4] hash: add local cache for TSX region Date: Tue, 13 Nov 2018 17:48:48 +0000 Message-ID: <20181113174848.GA24144@bricha3-MOBL.ger.corp.intel.com> References: <20181105173913.61225-1-bruce.richardson@intel.com> <20181112104719.62568-3-bruce.richardson@intel.com> <2853815.6en7p1Z5Aa@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Honnappa Nagarahalli , Thomas Monjalon , "stable@dpdk.org" , "dev@dpdk.org" , nd To: "Wang, Yipeng1" Return-path: Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Nov 13, 2018 at 05:24:55PM +0000, Wang, Yipeng1 wrote: > >-----Original Message----- > >From: Honnappa Nagarahalli [mailto:Honnappa.Nagarahalli@arm.com] > >Sent: Tuesday, November 13, 2018 9:17 AM > >To: Thomas Monjalon ; Richardson, Bruce ; Wang, Yipeng1 > > > >Cc: stable@dpdk.org; dev@dpdk.org; nd ; nd > >Subject: RE: [dpdk-stable] [dpdk-dev] [PATCH v2 2/4] hash: add local cache for TSX region > >> > > /* Check extra flags field to check extra options. */ > >> > > - if (params->extra_flag & > >> > > RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT) > >> > > + if (params->extra_flag & > >> > > RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT) { > >> > > + use_local_cache = 1; > >> > Do you see the issue even in the case of single writer? Enabling this flag > >> creates local caches on all the data plane cores. This increases the memory > >> usage for the single writer use case. Then there is 'writers on the control > >> plane' use case, the requirement on hash_add rate is comparatively lower > >> when compared to 'writers on the data plane'. The writers also are not pinned > >> to any core as well. In this use case, I am not sure how much having a local > >> cache matters. > >> > > >> > Enabling this flag effectively changes the free slot allocation from a ring to a > >> stack data structure. Does it indicate that for single writer use case with TSX, > >> the free slot (global) data structure should be a stack (rather than a ring)? > >> > >> Is it blocking this patchset from entering in 18.11? > >> If I understand well, there are some fixes for 18.11. > > [Wang, Yipeng] Hi Thomas, please go ahead merge the other commits without this one since Honnapa's concern. > I will talk with Honnappa separately on a better way to do this. > > Thanks! No objections to that plan here. /Bruce