From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: rte_hash thread safe Date: Mon, 23 Apr 2018 22:02:24 -0700 Message-ID: <20180423220224.1bd37f5b@xeon-e3> References: <20180423165039.51393aad@xeon-e3> <20180423173034.7086b772@xeon-e3> <20180424034853.GA4546@jerin> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jim Murphy , Brijesh Singh , dev@dpdk.org To: Jerin Jacob Return-path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 77290E5D for ; Tue, 24 Apr 2018 07:02:27 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id f15so11234739pfn.0 for ; Mon, 23 Apr 2018 22:02:27 -0700 (PDT) In-Reply-To: <20180424034853.GA4546@jerin> 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, 24 Apr 2018 09:18:54 +0530 Jerin Jacob wrote: > -----Original Message----- > > Date: Mon, 23 Apr 2018 17:48:50 -0700 > > From: Jim Murphy > > To: Stephen Hemminger > > Cc: Brijesh Singh , dev@dpdk.org > > Subject: Re: [dpdk-dev] rte_hash thread safe > > > > Anecdotally I've heard that the urcu hash implementation is slower than > > rte_hash based on pure lookup performance. Has anyone considered adding RCU > > hooks into rte_hash? > > > For one of our internal project on arm64, we did try rte_hash vs URCU hash. > Based on our results URCU lookup was much better. By default, URCU > library does not allocate the memory from huge page, But it has some > plugin based scheme to override the memory allocation scheme to choose > hugepage using DPDK backend. > Also URCU hash table can be dynamically resized. With DPDK the application has to guess at the number of hash heads which makes for bad behavior under small and large workloads.