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 974A542D76 for ; Wed, 28 Jun 2023 00:40:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14865406B3; Wed, 28 Jun 2023 00:40:27 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id D1F7D40151 for ; Wed, 28 Jun 2023 00:40:25 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6686a05bc66so3350837b3a.1 for ; Tue, 27 Jun 2023 15:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1687905625; x=1690497625; 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=JoZRisf5+LIn75uXLSN0uZ/x29RwDslfeNd8U84kjpw=; b=nHy8MwU9YLL2RqzQYiasMTPAVCjjJJMNr487mmTPCuSiGKjeqhBNXO8o/F0adtMTXJ c4VRsFUVFMOskNYaldogV5wx9GO+vJhTy4aRnUR+jl0Wbxj4P1+P+8sqDagU36BGKEX9 0fv9Ir6PlseNTs+/rgdnp1eOneST3cRwIPcWOGOuZO1cHh7IV7jzQ77vFLIYRdm4kMxK E8xghbVyjqzrP/Mifx4f9qb+/V36mNDm5eXER6NKyRdvXWg4xdb9gX806tmoqaj5Or+i VbvIkze9Msv3HrReiHje2tp0JImMNfZnM4Mu/NsHLeYo/vuCQGjiwel6lteXRspfdTlB FW/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687905625; x=1690497625; 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=JoZRisf5+LIn75uXLSN0uZ/x29RwDslfeNd8U84kjpw=; b=il/1HXlP8dLeWSaJ5AAPBpFqSvAS/qlw9KGYQowrif828G/nGaP+HxxYiMYBg1utMw e3Etx4j0IVqe+KUsBKZC1Nc4LQg7KXqtxE9wp7BjqiXx1DBV0gqOrfHnpfAPv749a+4o +2xvBu9DL6jVR99+LYnB57q5iHIuyi8PSgUyDSX6xSLREqe04fJMuMRVPsOv7dIV+bN6 HepCdig3Cbhq9NTEBr2fXYPG+tanIQziR7/44wlYZq6PjO1bkgZM9VTKTTwUnQPpTB81 mviDMStWbkb3nmvHdwYuHiY3JtakR1NPpGE4zADIouvPKpwkzPofhUh1yPCbdzWQfID8 Nmrw== X-Gm-Message-State: AC+VfDxm1la5jq29nLTkNNkko07EJfzvOn8oCHcgqVZb+oMBTIFlTwfC OX9+HHuQxEVwQeS9BlwPLVn8KvXP3iJUGwF6bLgZjw== X-Google-Smtp-Source: ACHHUZ6V5MUozgOMNuZIW4y1Nm0nD96ICHz5GfDn8FfprKGvuwBUcG/8JaoOjcnAeAiRCAKXPTChiA== X-Received: by 2002:a05:6a00:1a91:b0:66b:8d48:8e64 with SMTP id e17-20020a056a001a9100b0066b8d488e64mr12691129pfv.12.1687905624735; Tue, 27 Jun 2023 15:40:24 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id x20-20020aa793b4000000b0067f11aa76cbsm849612pff.108.2023.06.27.15.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 15:40:24 -0700 (PDT) Date: Tue, 27 Jun 2023 15:40:22 -0700 From: Stephen Hemminger To: Antonio Di Bacco Cc: users@dpdk.org Subject: Re: Multiple rte_launch_remote multiple times on main lcore Message-ID: <20230627154022.575af073@hermes.local> In-Reply-To: References: <20230625074926.38ea8586@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Tue, 27 Jun 2023 20:20:28 +0200 Antonio Di Bacco wrote: > This is very useful. Anyway, just on main_lcore, could I launch many > pthreads (with pthread_create) ? > > Does this interfere with DPDK? DPDK is not designed for random additional threads. You could use rte_ctrl_thread_create or do the working of creating, binding threads to cores, and registering; but the startup does that already. DPDK is designed for run to completion model where there is one thread bound to a core (and isolated). You can try other things, but that makes things worse not better. performance will be worse, can deadlock, will require additional locking etc.