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 10ECD4253B; Fri, 8 Sep 2023 00:09:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A071440285; Fri, 8 Sep 2023 00:09:31 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 285A640042 for ; Fri, 8 Sep 2023 00:09:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694124570; x=1725660570; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=wJHKgJd5gOB4sQWq+ZxPSpMl5bpROfFAbKajx4wjmzs=; b=aureEKNw+i2HM1V0Ke5eOkw712Llb+e+5XgMbi/y70K5MzlyZK8bsRuw Mrgx9xQrsmv0HwlCwNTkHBNgXH4+udCjL8m1JHpFd6r9lKp5KRRTXY1S1 nfjZDmIU4vNMvaVhH7XeGh3KnbG0Zquit8YRifvQix1z7jZaylxS3SFQ+ rwWsnC4h6mwKR3J84rr3yxsrUOb/p6O6qBgY28GPmjzwbVmMXO5OMVbWz N3aXCucKD85YG4j/5ADx7VIhiYFKPcwwmJwNeYBp+jyG49kDIty7JXXAj WK8hYEtZwpHcXnmmljHv+6DAsfCL1YvbHTf7e0KNCGhNBfwkYknDu9vpB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10826"; a="441509179" X-IronPort-AV: E=Sophos;i="6.02,236,1688454000"; d="scan'208";a="441509179" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2023 15:09:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10826"; a="915893259" X-IronPort-AV: E=Sophos;i="6.02,236,1688454000"; d="scan'208";a="915893259" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 Sep 2023 15:09:09 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Sep 2023 15:09:09 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Sep 2023 15:09:08 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Thu, 7 Sep 2023 15:09:08 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.104) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Thu, 7 Sep 2023 15:09:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fCFSnAVzirs6GncVA5SC5+WHZHDv64W7yIVroNj7fIXPJMwT9mSHMxuFGGFWCxRXu/otqTWiOHH6CP1fwoh55AVd2YX5b3CTjq4XMLiGBnB3cUhk2t1kCuiZ0/0VKeglPimElDqdQuNzv9ygaA2Ixlh4JvKzVcmEymJME/qJ+dknGVUOkZnemASAl9zSUSeFcbw87ECz046pU7s8zkw/j9iStbsh3i+p1m6LXAvOsct1++eAZ/wzIyIQZ9qMm0SKUerztlODEs3X4DyrDa9oBvN0jHCXddbDrYOqR8knSOtu+GETcZMmYSMBiF1rcJtzEh3ryoZcptxJ7kZcLnFywA== 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=wJHKgJd5gOB4sQWq+ZxPSpMl5bpROfFAbKajx4wjmzs=; b=Oy4TibNXYmc7yseNQn/8QArUyq/n/5gqKfSAnD5YstRzM3lwoV3aalUtg5RrpxollKkq2b9/Z/gk6YlEVyZ2kf6IIffasRfT2kCeRQ5dZjVaKagMZi0WVYZTXzsSO2BEIKfTHjYlu7ZOcvmFHa+Q+77zq4q8/2Aij+BaIm+VM4zqu0jx1c8lnTGO4fXmpcGA10ZQrC0svaNTnO+UBi4QGsaHF4tjND9hN3CtLUpdbFdYclgaqKpfXOsH88T6gGMNWjvcmGKgYTBIYdpIBafGrUiQVOahs6sSkYefBr6vKDdu9AnAApKpCPRXoLgu/sGBwVxRhM9VooCVCryPtqt8WA== 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 CH3PR11MB8564.namprd11.prod.outlook.com (2603:10b6:610:1b1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Thu, 7 Sep 2023 22:09:06 +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.034; Thu, 7 Sep 2023 22:09:06 +0000 From: "Sevincer, Abdullah" To: Stephen Hemminger , Thomas Monjalon CC: "dev@dpdk.org" , Tyler Retzlaff Subject: RE: quick thread in DLB2 Thread-Topic: quick thread in DLB2 Thread-Index: AQHZ3N3eJYh+mroGGUijyaYJ5done7AOO6EAgAG5P+A= Date: Thu, 7 Sep 2023 22:09:06 +0000 Message-ID: References: <2363761.yKrmzQ4Hd0@thomas> <20230906124526.02c5fe61@hermes.local> In-Reply-To: <20230906124526.02c5fe61@hermes.local> 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_|CH3PR11MB8564:EE_ x-ms-office365-filtering-correlation-id: 8cdaa558-5927-49b1-8069-08dbafef0dc2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k5I5XloD49CeGSutf/5YJKhkdAA0djl7PJKSXTtZ+T6eKk++IkFDwPdGbTH4Sjyl8mIF6POy+cIk+83BgCu05A3Llwd/TKBT5IXtknCy0wYT0qnjWdYeftmU5zpAo8UKLfffPKRiAHKD6gpTut3WxXdEB/kr59PYp3QM1z4JNx0+ad0mGKnThSD19OY3WuEFnbuPu+4AYiPdy5yV8WXYyxIPL9/g7ukHPTmRz5+XHreEyd89A7rSTwj+6YLdG2/PzJAXMoKy/M3H2EFyUz/tRYuX5Yxl0W10D49rj/NdyyKc0sSg83Pp249I4d6MndCa2lPill/czj4hlLIsrBQPbuMrIZiV0/TMVuSvuoHdpKckG4oBhK3afiYNuTLdR/n06tnLBqfUvb3gZsqRgP+Pf17WMxZYeik7XpCWP4XQrWvgBIxNrmb2KPSONILEGiEbvYywYTON9xUr5ws9z8/SrBsrYbHwG3CGaf7hCp7zK4cMq163tR/xTCamh7HNZwAqRkaE1bmRFMfp0W6b8sbtgz31FcC5anQhrX6o7ceNrFY/gsVmcWLv9qXUJWR8f+9eocPpVyXL3VDwZB5iTbcaJYHi6F5fPrCLN5dqVHqAlwGFQhJ/IK8L9G4ZzdX9ITSu 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)(366004)(376002)(39860400002)(346002)(136003)(396003)(451199024)(186009)(1800799009)(82960400001)(122000001)(71200400001)(53546011)(7696005)(6506007)(86362001)(33656002)(38100700002)(55016003)(38070700005)(2906002)(26005)(4744005)(9686003)(83380400001)(478600001)(110136005)(5660300002)(52536014)(41300700001)(76116006)(4326008)(8676002)(8936002)(66476007)(54906003)(316002)(64756008)(66556008)(66946007)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QkXLuhYvUlMPpBjmGvGxOZZp1BRUP3tQjvgERWZ9AkcVkdg+CSimpJucaark?= =?us-ascii?Q?im7M6CINccCcj7+qEzVM+HcPUtgrkLRj32g0xVJU9SGdc6zSOEZRZ+1Gh4W2?= =?us-ascii?Q?IEOYt46CFXanEa23/liOfkPQBR4Eh05XUv4/tD+zoMPaXomFtANuRLzV6qGD?= =?us-ascii?Q?0Pi02Iiozm1RXSAzWOBml60t4zPfHQUrWuZIhbP8ehU5aEvxyycj7UwwBjgW?= =?us-ascii?Q?5qHEoqqiRa5BqZcHMsWNSp4Dg+eG887591zpaUi6vJYj/geLvFWpW1vsSX+y?= =?us-ascii?Q?sYTZ0RWKIQUotSHWtfm9V6P56QHcgI0+hZbZS2CyQkCgm0ZfUG//7WKTsMsg?= =?us-ascii?Q?yV7bZIUKa0Fbd9qyGqHPvct3Ni3OKnPj1uwZ5adRocTPZprWEPWAB38DmfNS?= =?us-ascii?Q?wLRDE7d39xeUgq7WRRDrcPjYrhUHsIqg6cJs+Ez3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7FXwIDEnZ2bhaKhKWZSOWqjSdqyZAihmsBX2?= =?us-ascii?Q?Qw9Z3x2Vvbx69YD+zWVOCHObBfyH6MEC6pOx8u78r7R207jtg5hEemS9GVSb?= =?us-ascii?Q?JGWfcmKqeYgLaE8DtjA5kteBLJ7XK2N1y5T90JsgLesfhw+96YE33MUwrIEb?= =?us-ascii?Q?8dikOtDUxXUJAy2JPC1/P+sQrMi9IqxQBR/irNoX9CgjVrddSXkWIbzbGJ20?= =?us-ascii?Q?lx9EQwGtagyuyEzb2mkmwZXx+qoHwXIPfOd1+35b?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: 8cdaa558-5927-49b1-8069-08dbafef0dc2 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2023 22:09:06.5726 (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: U3Dicq15ncvhL+K8OeWvZvIE79O/yR1qed3yp9oSaXh32h6MwoK5UGvLt4Q9TL/lnGy9c3g+UmLxFE/7H3rJm6YVe2gnMMkK+bqQxDMM/hk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8564 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 Hi Stephen, It is probing ports for best CPU. Yes it collects cycles. We may rework in = the future. Open to suggestions. -----Original Message----- From: Stephen Hemminger =20 Sent: Wednesday, September 6, 2023 12:45 PM To: Thomas Monjalon Cc: Sevincer, Abdullah ; dev@dpdk.org; Tyler R= etzlaff Subject: Re: quick thread in DLB2 On Fri, 01 Sep 2023 16:08:48 +0200 Thomas Monjalon wrote: > Hello Abdullah, >=20 > 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,=20 > &dlb2_thread_data[i]); and just after: > pthread_join(pthread, NULL); >=20 > Can we avoid creating this thread? > I guess no, because it must spawn on a specific CPU. >=20 >=20 The per thread data seems to break lots of expectations in EAL. It all seems to be about capturing the number of cycles on different cores. Looks like a mess.