From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CF3D4588A; Wed, 28 Aug 2024 19:23:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93EAC42686; Wed, 28 Aug 2024 19:23:21 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id 08EAD402CA for ; Wed, 28 Aug 2024 19:23:19 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7141285db14so5986883b3a.1 for ; Wed, 28 Aug 2024 10:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1724865799; x=1725470599; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=wV/TTfDhoDsWOJsh5N8Caw3RIzA4m5Qqh018AQq0Scg=; b=NfLZ611xhrPW8aGdBF2UoqY3z1T9TArLYfkkCYLxQeFe+fT9W1B7HPxo5n2ht0EIvH owDj/wcku38g/iJBGsHaR6SveiiqH45ewUZ9u7qYR0cKinUazsWo/sXSOXHWzKuLVkTh 8AVx5aZSvcM4zsUmj2iOEErwDI8XtD2zicOh7lbioeIvj3MKnuKTcxLA0RXLfzqF+dBO 8dfozbhL0MpoaIKoL9DZm5Bl2lF4NmGmrafxTAOwl8w7aGviMZ/HnZgvcCgZfA/qf17+ tHV9UE0cHxBSY20WZ0B5BGjMRnPsV1jkyNHHsT7Gx+2vBfjwgGYi/62B2s5Z7+wUqpcA p0dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724865799; x=1725470599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wV/TTfDhoDsWOJsh5N8Caw3RIzA4m5Qqh018AQq0Scg=; b=VhMuD2V0Jy6J9Gt46T209eZlhboncwFoA1vpV0s/QBkdw+pZ2GKP6p0gMggbj4Kf+O JMCca5y1dHPICj4Bjp3gKQWw2Zy2SNWs5i8WxiUkr0kqZ3gonjQo08Zw3sLucaj4Qd1h /eIUF7a2jikVvkNNcnFC/XdBqlEQfdz2nuGU8ZoXq183BrBk/PLNB9vSrammH7wi8AJ/ gXx6czcmDjLaCS0oHPhckkYPy9G0G4advKvvaK7vWNiI5nhtWaF0EslLJ+LYzZ3A15bo XQq1DyzomNIpM8AC2mFMV77h1LjgThFMpfJ0K5EsdcW7k6c+XNh75cZV3EN2IgrNQB/h nDlw== X-Forwarded-Encrypted: i=1; AJvYcCWZBZeezDNGWMY67Q8J4I0k01Ie3s0scnaN0Nji4xbHPClIrSRBPeguRwk4cjhbVow9V54=@dpdk.org X-Gm-Message-State: AOJu0Yw8D/Xn685lTyd1TmIltR6OLNhCubSBtY1CtOYMpg4BOfouj6y5 4zrKFp6Dmt4biwD1YDZYWFBL5k1opdzEtvsurfvUDtbTlarG/pd1bgqu72xwfb0= X-Google-Smtp-Source: AGHT+IFg1cnQBJXW6gf3CHsQs4oQtfKwzN3kUUuT1XNjFG6TfxRZoGIHovIi7pZWm1M9i07ZGjgS2A== X-Received: by 2002:a05:6a00:3e13:b0:706:384f:3e49 with SMTP id d2e1a72fcca58-715dfaed34fmr179732b3a.1.1724865798878; Wed, 28 Aug 2024 10:23:18 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7143432f089sm10334556b3a.185.2024.08.28.10.23.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 10:23:18 -0700 (PDT) Date: Wed, 28 Aug 2024 10:23:16 -0700 From: Stephen Hemminger To: "Medvedkin, Vladimir" Cc: rajesh goel , Ferruh Yigit , "Wang, Yipeng1" , "Gobriel, Sameh" , "Richardson, Bruce" , "dev@dpdk.org" Subject: Re: Bihash Support in DPDK Message-ID: <20240828102316.0a72bbb2@hermes.local> In-Reply-To: References: <18c7afe0-3fc0-4d4d-807f-57870197c32d@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 28 Aug 2024 15:54:27 +0000 "Medvedkin, Vladimir" wrote: > Thanks for the reply. > > Bihash I mean bounded index what Vpp supports. > > Iam looking for the bucket level lock support. Currently Iam using hash table shared by multiple process or multiple core/threads. So I have to take the write lock by single core and then read lock by multiple cores to read the value wrote in this hash table. Multiple readers are getting blocked due to this. I want to avoid this to increase performance. > > Let me know your thoughts on this. > > Regards > Rajesh RCU is always faster than reader/writer locks. Reader/Writer locks are slower than simple spin lock unless reader holds for a long time.