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 EE6C042D4B for ; Sun, 25 Jun 2023 16:49:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67BDE40ED8; Sun, 25 Jun 2023 16:49:30 +0200 (CEST) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by mails.dpdk.org (Postfix) with ESMTP id 5D54A40A7F for ; Sun, 25 Jun 2023 16:49:29 +0200 (CEST) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-34574014304so7685615ab.2 for ; Sun, 25 Jun 2023 07:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1687704568; x=1690296568; 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=e+IRWR/ARnKT8jNeQhQ8tAbku7/qLpTenGu1MXhNp00=; b=dd1YeWTK2KXEe3Y+k/TITh11+RcaRdJuHxjQjAOtgxc+pB6AwcRhVFZTiCAQb64Ipy z/FlVqRuf1Zoxrp8Y95mOGWCg1+3uV0iUMLCQCx86o6cj0ogceYHOmGS7WQygcpmyEjS AFrVvg1R7Qu4iguVRl8WQvCeCoVZlwq0XGToOSg9W2OaCRUyIHte04rvxyXLLw5lMloY vxk6pp30IwDpX/RxT+z7bCbasgQRtfhjnvkWqqwncBNWAJZhy9g8NK26u86wBeaszNGJ LvsTrRcYaqXdHcStH3UyVidbJW+M0jM5xVZzxw3UpX3ejukR8YvIwDroxEA6ld5Hd4fc yajg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687704568; x=1690296568; 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=e+IRWR/ARnKT8jNeQhQ8tAbku7/qLpTenGu1MXhNp00=; b=Ea5YkUGizClNh6tn/d89543s6n2iZUkH+CsV/Y0DOwwSizYC65EvQvzxaMreYSv1mk AK3D/nBbqe5EKBnfi+ePm8aZL81jPpn1uoPOSaEN8g52Kz3exQY3xVQ8R24M7QBlEqfB /7JhBOmh/EbQa2MVj2aGAhTeotby9+z1iWlTBI5vZZ5fRyBosvp3RH4HctSo8cia+5yg 9vWDPXIYIeeDpTVX2dmqhreCanDgnb9gIqFrFMpfEUPfTt4w0GQSIZSqdfTMgDp8QpEA 29SGSZNiC5MnU7zv63bR9XwHSno3Z7bM5s4IZpy+RFR+xC2B2GPR+rI1Wpm8rpWfE7Uv nodw== X-Gm-Message-State: AC+VfDx5D7sBdmJjgNedDc/fzj9tfUh53S4h6dYQL1XBbvhBFd23w4Pp wmSTHecvDCJ6jkuy2uZsG+zTIQ== X-Google-Smtp-Source: ACHHUZ7LI9a8ZqmVAzIe9rVd2AvGCzZGi+gJ+DpgP7D7l1hprKHMdbBM6JakQMZXmcShlVLkGUv7/g== X-Received: by 2002:a92:506:0:b0:33f:a995:31ab with SMTP id q6-20020a920506000000b0033fa99531abmr27491243ile.11.1687704568646; Sun, 25 Jun 2023 07:49:28 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id b21-20020aa78715000000b0063b8d21be5asm2394886pfo.147.2023.06.25.07.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jun 2023 07:49:28 -0700 (PDT) Date: Sun, 25 Jun 2023 07:49:26 -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: <20230625074926.38ea8586@hermes.local> In-Reply-To: References: 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, 20 Jun 2023 17:33:59 +0200 Antonio Di Bacco wrote: > Is it possible to launch multiple threads on the main lcore? > Who will be in charge of scheduling those threads on the main lcore > (main lcore is isolated)? > > Not the OS I suppose. > > Thank you If you start trying to add threads like this, it will lead to all sorts of locking problems. When one thread gets the lock and then gets preempted by the scheduler and another thread (bound to same lcore) tries to acquire the lock, it will spin and wait until the first thread is rescheduled. DPDK was designed for dedicated threads per lcore.