From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B72F5A04F2 for ; Fri, 6 Dec 2019 17:51:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 465E41BF9E; Fri, 6 Dec 2019 17:51:48 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 0D69B1BF8B; Fri, 6 Dec 2019 17:51:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2019 08:51:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,285,1571727600"; d="scan'208";a="263630753" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by FMSMGA003.fm.intel.com with ESMTP; 06 Dec 2019 08:51:42 -0800 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Dec 2019 08:51:42 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Dec 2019 08:51:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BNwQpjYncTlKZeYvoXOZYnLOC5z1q39rIfKPqh6d14F4lg93CoEZXbRQKiOwc7m3klWGAYf0tNj9SeSwVcnNfv7En7PNzv39cJ27NPYH9pj8PxGEbcSY752bnA7M2CwTvItFfaO/DA7YDmd9RMx05ctsDT1r0VUN/mfHjQwZAjbQ48mMRy5L+Z6hAyQ1no90B9AzaE4GpSfVUuJk3Xg8rX2dMPbOMaUT8sbzc/B+4NFE3ar2cxUCNCVfexU6vIyX1S8KcsBerliKd8/J+dkvAhI3jFhPVFGz3u1swMkj2zmhXim3aRMEBle6fI62ChubePWsfs9s/3jv7nuUUaEJ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ek1N5mJcN5+ZJlwL5IQ6O+mBGQN5uLfB91g112JdaoY=; b=Mx6/PKelyeIJu8aNn1GP6UqUGTx8Zml4cY5r9j9Gjj4Z96CKzHqcsE9tU5eNKtRinH0nKEDIFgKxm6f4RfYSL0la/jb0pfyF/TtJZsOzfngJGOJpVmOJ5+dyDB72+E04gY0u+E4ew7HTtbzKurlb1PHkZQ9RXRMKeiyhHGUT+vQKStnH6YeTQOJhYI4Y2wP0L2BmKDfcpZDy9j3d6/7UhC/f2xZKt93eTyjmHA0sQXLmdsdnbQ9sGTmRIX+EVASiPkm0chaLD1YXF8jbrRNj7xhtYGIOkVuUc9Y2mIxOue/g35Kw4zt16RTBBvZT+Q9liSfzmW3RlZ5FHv6rWSHVkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ek1N5mJcN5+ZJlwL5IQ6O+mBGQN5uLfB91g112JdaoY=; b=U7ZU0mOVY7N0HqA9H9CRfivLqlQ8uUQDolsbTbcY9lBFvOYxqEuO5RSGnmj5Hj0kQihOv6Q2YViXi2Xwbi81EC7ZbrpIzXAtAOKrfAUA99ZDmYAdX6SbZXBi+TNrUXBOvWTyqpVCwF4HXi9E+pH8iLRlv8M65XDAeNF+DgOIf+0= Received: from MN2PR11MB4447.namprd11.prod.outlook.com (52.135.39.217) by MN2PR11MB3918.namprd11.prod.outlook.com (10.255.180.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.12; Fri, 6 Dec 2019 16:51:40 +0000 Received: from MN2PR11MB4447.namprd11.prod.outlook.com ([fe80::b820:4ef:4280:adda]) by MN2PR11MB4447.namprd11.prod.outlook.com ([fe80::b820:4ef:4280:adda%7]) with mapi id 15.20.2516.017; Fri, 6 Dec 2019 16:51:40 +0000 From: "Van Haaren, Harry" To: Stephen Hemminger CC: Tom Barbette , Perugu Hemasai Chandra Prasad , "users@dpdk.org" , "dev@dpdk.org" Thread-Topic: [dpdk-users] [dpdk-dev] Sharing Data structure between logical cores in DPDK- regarding Thread-Index: AQHVrFKe+8fjzBtWkEKmh7VUT64TcqetUAvA Date: Fri, 6 Dec 2019 16:51:40 +0000 Message-ID: References: <1575542540897.56972@kth.se> <20191206083030.4216fd3e@hermes.lan> In-Reply-To: <20191206083030.4216fd3e@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDk2MGUzODUtNWY5Yi00ZjRmLTkxNmQtMGZhMDllOTQ2MjNkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSThiK1loZ3hzYVozY2F6eSt4N3J4c29mQTR3d1dpZTlaK1dnaUlUbm4xYnMzeEJ0cEVteFJKOU9CRlNISGJ5TiJ9 dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=harry.van.haaren@intel.com; x-originating-ip: [192.198.151.166] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ddfd8e63-f607-4584-5d66-08d77a6c9107 x-ms-traffictypediagnostic: MN2PR11MB3918: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0243E5FD68 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(366004)(346002)(39860400002)(396003)(376002)(13464003)(189003)(199004)(2906002)(8936002)(86362001)(6916009)(305945005)(66556008)(229853002)(55016002)(74316002)(4326008)(52536014)(64756008)(9686003)(76116006)(66446008)(66946007)(33656002)(26005)(66476007)(6506007)(316002)(54906003)(53546011)(102836004)(186003)(81166006)(478600001)(7696005)(76176011)(5660300002)(99286004)(81156014)(71200400001)(8676002)(71190400001); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR11MB3918; H:MN2PR11MB4447.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nEAcmUYMO9tohv5p+SEcYhne0VB8sQg+OBcYUd93lSf2yt1MM3u9f1za3kbTs7K315q40KUSKoDnpE/zn2pz3eNQctrrkOYRZ4F+C3Ot2M/aIgfyUsVicuVlgsfVwoOCpHM+JRaM3/CPC0QRbRp9qfk0EneWp7BN4VNhTvclL0AKUrNU33GqqgvqgAY3hMlRMfNE2iK/Bypx4lqKKJoKLu637U6Ak7GwzH2u6mnLjmaHZFsbDzZ0+hCYP1CRcWX9wft6bmFX0JEp+Mw5YTlklb7XIuCfwduz5UYOcj+/Pz9BGByt7J/qtBamOPSjFIpZa4wMFXZ56+uKkfysJy4gkoXHCs3qXDknV5M+MQsSQcGz5H9tEn7DX7To2rRkkhNpXagax/iYKCXTMRfi/aDkzzbu9coyscuxELti3wstIGtnkpgcXqhjKC8/65vfjJaVnvOlja4eyOHx2RUi5xPbOtEIzLw07AufGysbiIAV6+cnWBIT0SYXZTnKMdy1Snc2 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ddfd8e63-f607-4584-5d66-08d77a6c9107 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2019 16:51:40.3050 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: drv/jYMfuuB2aeh9XUx5WnNCijvPWRw/6sXorY81InXRSI4cmjjQMTBpsQ+EKpcF4/k1WLrVoYbDlaBF91twBvhiLVixRTnTT70d8w6wMrs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3918 X-OriginatorOrg: intel.com Subject: Re: [dpdk-users] [dpdk-dev] Sharing Data structure between logical cores in DPDK- regarding X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" > -----Original Message----- > From: Stephen Hemminger > Sent: Friday, December 6, 2019 4:31 PM > To: Van Haaren, Harry > Cc: Tom Barbette ; Perugu Hemasai Chandra Prasad > ; users@dpdk.org; dev@dpdk.org > Subject: Re: [dpdk-users] [dpdk-dev] Sharing Data structure between logic= al > cores in DPDK- regarding Hey Stephen, [OT] Please watch your snipping of > characters and Wrote: strings, I'm not= the original author of the question, but from snipping it looks like that = below. > On Thu, 5 Dec 2019 10:54:59 +0000 > "Van Haaren, Harry" wrote: >=20 > > I have a small doubt, can we share a data structure between > > > multiple logical cores in DPDK without locking? >=20 > Sure, learn to use RCU!! Good suggestion, apart from Atomics or Mutex based locking schemes, RCU (Re= ad Copy Update) is another method of (semi) synchronizing/sharing data-stru= ctures across threads. DPDK has some RCU mechanics in lib/librte_rcu/ library, perhaps they are of= interest. The implementation here is particularly for reclaiming memory af= ter a Quiescent State point has been reached by all threads.