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 2D09042278; Fri, 1 Sep 2023 16:08:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4FF640285; Fri, 1 Sep 2023 16:08:55 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id D28E44014F for ; Fri, 1 Sep 2023 16:08:53 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 044DA5C01AB; Fri, 1 Sep 2023 10:08:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 01 Sep 2023 10:08:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :sender:subject:subject:to:to; s=fm1; t=1693577330; x= 1693663730; bh=sk+pp9pKDkKCVPBvgaxH/GZQM7+wAKtQQY3BSf7oJvk=; b=H Y7bk8T4ss/TNa7gzKFEpw4fuGe91pROXEDOZ5kueX4tv7Q4PTdTGvV5bsoEBYtrV fb25YZqZd8pf9wm/XBjWQdrdjhv8iQ2NrZ2ToEFtaG1pwYt39/wCCVhhpdGpUvtQ bE1EPOnpwKCUkThZJk0QsJ2CeC5/UQ9DuJj5AFBzWLuGVmKU6hBzB1Wy/Euo7Mn8 0ZrwCS/8JlUnWz4FxZA+D6YoEr79eq08+pMhAH00KD84qa1RDn+KrRK8n5h0ZXMn 9m933Cds8uFQtI7aU9lZ/9ejte03qRulw45cebYMbCsFbb5fBFMj3UTLhjwDy371 aWD6FUS+dQ/X6lbBoQ9kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1693577330; x=1693663730; bh=s k+pp9pKDkKCVPBvgaxH/GZQM7+wAKtQQY3BSf7oJvk=; b=ekvpAkRSPT+JZFjTk js4v85jwKYRYXu1rrHTUoLMYx8LIMDMufGCE5vSPMoObI1/oFKdT+uFn0kRlmuhP BTdDwYEmLAlZ90dUtZHcy5ATbfxOJujeMbFDNKEZwunKng8qc4FUupFgHYsNAdqZ WjRt3hXyG3/VR0GQHjOnevUeGH723pctgVsjUzzp4iIc3RX+mdWIQWlCuARra/Xv OwN6FNhbEVPlyG2ABPOnXTNziDIblH21auQjF74ohu2gOTeutFqAZEOeHeJe57Mr xS7HaQEiyIzMu1vazBcUmbCy53zzUuueCQjL5yG8TlFOe1Fkr24OD+D1mkS1lAUs wivmQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudegvddgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpeeugfegteduhfdujefgvdfhteeiuefghefffeeukefgfffgtefhfffh jeeuvdefvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Sep 2023 10:08:49 -0400 (EDT) From: Thomas Monjalon To: Abdullah Sevincer Cc: dev@dpdk.org, Tyler Retzlaff Subject: quick thread in DLB2 Date: Fri, 01 Sep 2023 16:08:48 +0200 Message-ID: <2363761.yKrmzQ4Hd0@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 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.