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 CD475424F3; Mon, 4 Sep 2023 21:14:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68784402E9; Mon, 4 Sep 2023 21:14:06 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id AB0F5402C1 for ; Mon, 4 Sep 2023 21:14:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693854844; x=1725390844; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=Qsmks3JZOS61dxqXvjMmBxe5EDUFBANGTt48uz5Sbfo=; b=Oqxo8h7eh8OT/OOpqZ/rD4hK+3DDMXbjDFwSjzsUn55zhvxmjMi823CJ /VJiD4C5ifuRra7iNbQXjmcDR3kumaccZodXOkwnH+cIhEfz60OC8qnPC nRov4GFE+rxnn1lCKHIbHWj2ojln3g9EEtO22EbehsSFV9DiLyMGL5wsy AkvjiRD4QZ/GvAxBfK+tJQamYGMsAzr+Rz6vCJ2U98pPG/ZOJkJ5n/InC MyycKgEbF7cXDqrmaxOKh812zptCMEdE5OyD7yJC5/ex7LD4a8J/Xxo43 7Xl4tqwtCmYsQC7cYumHm2VRKNtF8kQYzonHOFQPg0LRzeKsBJIv3R36g w==; X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="463018817" X-IronPort-AV: E=Sophos;i="6.02,227,1688454000"; d="scan'208,217";a="463018817" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 12:14:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="690671493" X-IronPort-AV: E=Sophos;i="6.02,227,1688454000"; d="scan'208,217";a="690671493" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 04 Sep 2023 12:14:02 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 4 Sep 2023 12:14:01 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 4 Sep 2023 12:14:00 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Mon, 4 Sep 2023 12:14:00 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Mon, 4 Sep 2023 12:13:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pj7cvcRFxR2LNXw2GgwSfXzV28jTlaZb7mW7mJsQqTtvr1GcdipGlHQvK0ld35r8+TASoMjW28U1eMAS4LtFbOiIkHFba45qs+ETT3kemkNYjRZfYJAgeOf0AQwnBHMU/+Z1tmwBbUSKdlbA86S/RExN61vn3UeduAxmEvKG8r/gKy12GzOp1igwP9nxL4NB+kTEwgolzGn7RJ3B1WQR4t1QmcfdmU7aIXCbU18JuOw4hoQtYnb4sQhiBNZLateL6Ws0bWSJ5to18q+zLMZx/MLHlrQasGG4qCEJTXbp2s5IZUDLgkCSWccEP3IMZjMT/F4Vyhbs1zg9zThRDSGNfw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qsmks3JZOS61dxqXvjMmBxe5EDUFBANGTt48uz5Sbfo=; b=L72EbhzMBKoungeHkktxsoLTydN10Sp5KAB83ys7MJ7LRdRJfXwvOxkKSzn8KU79Fvs0IV+hIrVuHOZy8/fIgNcojaDsUqt2mnQ6TPiBj6gd4qm5l5a392kHAm/KLqAc/OjGIcx0Wy+AFU/jgsJIBp8HRNc8e1VuZRgGLyoehKgBwTxTMVGD33vjBU+kaV6DVRLLWYdrpb8QhxmTes2q3F6bsXZmuuwWTZC6lZZ4asklWi1GVYpadp48fqA2fY0ztFpzDuax7Ux73Na3Xc1JhTHOa8GO1Z/mESNJGJkjuNCTVcLupY+UnZ6H441cJSZDh/IU0vajDbEKWG2w6zsl0A== 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 Received: from BYAPR11MB3158.namprd11.prod.outlook.com (2603:10b6:a03:1c::29) by IA1PR11MB7341.namprd11.prod.outlook.com (2603:10b6:208:426::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.30; Mon, 4 Sep 2023 19:13:57 +0000 Received: from BYAPR11MB3158.namprd11.prod.outlook.com ([fe80::1f2b:1844:751a:a748]) by BYAPR11MB3158.namprd11.prod.outlook.com ([fe80::1f2b:1844:751a:a748%4]) with mapi id 15.20.6745.030; Mon, 4 Sep 2023 19:13:57 +0000 From: "Sevincer, Abdullah" To: Thomas Monjalon CC: "dev@dpdk.org" , Tyler Retzlaff Subject: Re: quick thread in DLB2 Thread-Topic: quick thread in DLB2 Thread-Index: AQHZ3N3eJYh+mroGGUijyaYJ5done7ALDdxj Date: Mon, 4 Sep 2023 19:13:57 +0000 Message-ID: References: <2363761.yKrmzQ4Hd0@thomas> In-Reply-To: <2363761.yKrmzQ4Hd0@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR11MB3158:EE_|IA1PR11MB7341:EE_ x-ms-office365-filtering-correlation-id: 74f9f775-8259-4470-edfb-08dbad7b1671 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 22nHED7/aoAKs68PuXxSHQzAvRK7QFI2jeHTX/6mLej+0FSfFtyQzpo1hsRQ2fqV/uvxGy9yGAO/4j1BPYP59HMCD5hp2H+ALFYjW53xrqsb/OggUk+gVvPshFi5DIbL2dvepIN7PfmaIrMIYtjWQ61eJw8HYcei6oyCkcy1QHslO0iuyrZaMhqwFkFjIlJan9p0m1OkQonsiy8DxBp4d4ak2vlU/KqJU0Jqe1mxa49rFC75mQ8csOpdm6QSrajZ3R5WgNwr0VS6/P8nXKhDXGa3MmaxTK9QRh9tZps0bnzSSHY8GLs/OUTjm0jzffRN28gwJ94NEq+qqKh9Hzvq6TojKTgAelMA9NjDjkSnSjCEoMz7aAxxrfeY+s2Z8KLUVvjdnyr932Q4NnV3zgKiXCPem5QyESlx66kElHV6HwllFxynSLy5Fk7F/lKHeSWV4FNT7bOjwODrWlY+C2R3QMrxZzjm65WgTE2GaXTWeQUdhn/naP8hakA0o40Qbo+7fQJEGV9V30DmClE/L8JDkYB8VVzHrzckN9jOamw4a5AbI8+m7ssBdiJmcunlESSpyFDU6wetGa/1ZIfYzffT0YnOG0c58BewjZezhWxnyf2H6Pb13Eyyxc9QUSUQuVhU x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3158.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(39860400002)(396003)(366004)(346002)(1800799009)(451199024)(186009)(8676002)(5660300002)(66556008)(316002)(6916009)(66446008)(2906002)(64756008)(4744005)(54906003)(66946007)(66476007)(76116006)(8936002)(4326008)(52536014)(41300700001)(6506007)(7696005)(53546011)(9686003)(55016003)(26005)(122000001)(71200400001)(82960400001)(478600001)(38070700005)(86362001)(33656002)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nWElx3UEiQEjuXAxEeGtW7+henzt+y1+WiZiD0ktz8OUvYdIOp77DxSSGTj/?= =?us-ascii?Q?DVwZMSCnTjUlp/L58XbateG3iXwz2+IPpDgJxbQNFza+Q7WWdrpuaEORAIR2?= =?us-ascii?Q?wUuRO98RUTGO50pypmo+ru+F0bh5LHjiAd5FSCIKfA8/CC9fQa6d7qRinENz?= =?us-ascii?Q?uDFgud5O9x3dlO9EnLhjdFrHflxF9U2ESAPJFRjFi/xhuD5ngK4qMXbYSjHs?= =?us-ascii?Q?freQFhUn0kdGrAs1/l2e+gT1+5LKM5G1FpPsqG+0Uk3tE9gfTW9QDDAPqSnW?= =?us-ascii?Q?4TCfjuDew20NVS9Jk+f+C1Fxpq03gLdcKkBg7NoPsabYLCBFFFxmYkC042R4?= =?us-ascii?Q?hZScjsmsLGVrGQtIiC4qDbqpc58NNOgu7tgKw6IJEhv81SjjG6fq/FT6gYG9?= =?us-ascii?Q?Oiz1+618aNqicKpU4/+TzT7/bSJWE361Im7TtxEGEVH2fuZcA4nAuIMwOEOF?= =?us-ascii?Q?6JLO8SNAxmKgTXug98eOew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-ascii?Q?m5Lve4IDu8yCQAmhhCBLJXO6dPvMiy962SInHtsYgYcM+GbwwMXtxbhl25Zy?= =?us-ascii?Q?L9CLKwp7o78eTdAc0kmEojV+JzCQYK8pkMcHBvZckVEJZ4xnZlbuuYIeRBko?= =?us-ascii?Q?a2ihACwpjPXMpakiLQUwRO5I7I65MoAc2IuCE/4/IJcdrTQRRTVGVDPjKCBY?= =?us-ascii?Q?RTokqCdQDSt1hhuJzERnOojUyTZojnc93wrCoEuYRxQ9ugD8euuH8/7NW9Zx?= =?us-ascii?Q?/jyg6jjmXzsjPzucBCxlGJk=3D?= Content-Type: multipart/alternative; boundary="_000_BYAPR11MB3158BF100ED49E8E7A9CE45CE9E9ABYAPR11MB3158namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74f9f775-8259-4470-edfb-08dbad7b1671 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Sep 2023 19:13:57.2032 (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: zUeDGPSn+SUZPGssoGapvFNFE1sUREP8YjABpSR7a+WFkvQkp2uq/0h3pcfLrupKDm5AtTY/9gBSj05xYz5ltGMLg8EL4YjbivjYuTiTaoQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7341 X-OriginatorOrg: intel.com 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 --_000_BYAPR11MB3158BF100ED49E8E7A9CE45CE9E9ABYAPR11MB3158namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Thomas, That's right we need to create threads on specific CPUs. ________________________________ From: Thomas Monjalon Sent: Friday, September 1, 2023 7:09 AM To: Sevincer, Abdullah Cc: dev@dpdk.org ; Tyler Retzlaff Subject: quick thread in DLB2 Hello Abdullah, In the DLB2 code, I see a thread is created for a single operation: In drivers/event/dlb2/pf/base/dlb2_resource.c pthread_create(&pthread, NULL, &dlb2_pp_profile_func, &dlb2_thread_data[i])= ; and just after: pthread_join(pthread, NULL); Can we avoid creating this thread? I guess no, because it must spawn on a specific CPU. --_000_BYAPR11MB3158BF100ED49E8E7A9CE45CE9E9ABYAPR11MB3158namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Thomas,

That's right we need to create threads on specific CPUs.

From: Thomas Monjalon <thomas@monjalon.net>
Sent: Friday, September 1, 2023 7:09 AM
To: Sevincer, Abdullah <abdullah.sevincer@intel.com>
Cc: dev@dpdk.org <dev@dpdk.org>; Tyler Retzlaff <roretzla@l= inux.microsoft.com>
Subject: quick thread in DLB2
 
Hello Abdullah,

In the DLB2 code, I see a thread is created for a single operation:
In drivers/event/dlb2/pf/base/dlb2_resource.c
pthread_create(&pthread, NULL, &dlb2_pp_profile_func, &dlb2_thr= ead_data[i]);
and just after:
pthread_join(pthread, NULL);

Can we avoid creating this thread?
I guess no, because it must spawn on a specific CPU.


--_000_BYAPR11MB3158BF100ED49E8E7A9CE45CE9E9ABYAPR11MB3158namp_--