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 9B31843D8E for ; Sat, 30 Mar 2024 23:40:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 589B24025E; Sat, 30 Mar 2024 23:40:33 +0100 (CET) Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) by mails.dpdk.org (Postfix) with ESMTP id 62F264021D for ; Sat, 30 Mar 2024 23:40:32 +0100 (CET) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5a4d435a036so1157531eaf.1 for ; Sat, 30 Mar 2024 15:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711838431; x=1712443231; darn=dpdk.org; 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=v5PicR5dv/fJ6HoH9oc2MRig+TIBqZf7iFDoyO00wnU=; b=QjhOYdLEA5DL6GxbusIrLFAwhiIBjQkxaFNNAtWVBB80NxKheJH5qPkDhN/1Twjx9i HzVqMlNaY0mgXKD+Fp0Vm+JMtM5tkoE9JNk94CVa3Tf34mnCY5drb/uM3QYjPgZLXNy6 50WU0+FOJQk5NpcGY4BfnU8NaUSEi77tRH12azSELYmtm1JksQ1YrZLfibYkMdn7zB0C cVpgB7fhj/WTcfP34IhKNTv4JT5e7p67KQBPy9qj+5AgDXnFdmjqN+2FszY3CY6YXEr1 leQmkdzZ8ExSIRfL4vqdh4ttmkhGv2UZn8IWSYX8Non9VVqOkqS7hOeUY3XDodegzfgn Bd4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711838431; x=1712443231; 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=v5PicR5dv/fJ6HoH9oc2MRig+TIBqZf7iFDoyO00wnU=; b=f8+/C1CDcq2NmduKQTqZq7LlY8wBKJh1IDMOtL11jb9r1M9Y38PCzztzBIitGET2yJ Cuo4jUihqUWf3yGLSvgJohL3E2kNGd0fH4Op2rQ8FAJZMbrr2pgWOlLQ0gbwF9P4Tamd K+IbccNYbahhaeNsE8eo9w/CF8ZOCwC3fxIbh83RwX6BYLtePuNTz0w6pXQhKCqNs+Rc gZEoqjgglPaLvVYBgm91GzNgTEkWnOJif9thlDmo+6WGNFHdJ72hAL2CUmLjCbUaaMtv mz/HHoBE6y2l5UgorvUK2DMJbpG1+m9r4qDQuK0nE6AMXSbT5tzyieIO10YHmDREuz1k Lc0g== X-Gm-Message-State: AOJu0YzeeMRCNMcSK+pawR3+YXnkLOm+GMbdAsZQQCDT5lqYQUn5b9St Xll/9tw9h5F0zrt3m8zlG4ggpeKX0QkmTRslhykd3m4MXedF+GXKyjIbX66RhaI= X-Google-Smtp-Source: AGHT+IHkol6Fv44smaTgaPHyOkD6cRe99/tLMWH++3+TkwQCo9L9WaO/X56JRTXuoPCamIhdg+DZLA== X-Received: by 2002:a05:6358:3218:b0:183:55a6:b240 with SMTP id a24-20020a056358321800b0018355a6b240mr7955577rwe.4.1711838431404; Sat, 30 Mar 2024 15:40:31 -0700 (PDT) Received: from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203]) by smtp.gmail.com with ESMTPSA id 34-20020a631062000000b005d8b2f04eb7sm4962401pgq.62.2024.03.30.15.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 15:40:31 -0700 (PDT) Date: Sat, 30 Mar 2024 15:40:29 -0700 From: Stephen Hemminger To: fwefew 4t4tg <7532yahoo@gmail.com> Cc: users@dpdk.org Subject: Re: --lcores: what it does and does not do Message-ID: <20240330154029.19f5dee7@hermes.local> In-Reply-To: References: <20240330095202.6cdf59bc@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 Sat, 30 Mar 2024 17:45:41 -0400 fwefew 4t4tg <7532yahoo@gmail.com> wrote: > // If program run with --lcores=(1)@2,(2)@4 this loop will > // create and run two threads lcore 1 pinned to CPU 2 and lcore 2 > // pinned to CPU 4. the output will look like: > // hello from core 1 > // hello from core 2 > RTE_LCORE_FOREACH_WORKER(lcore_id) { > rte_eal_remote_launch(lcore_hello, NULL, lcore_id); > } > . You don't need that loop, that is what rte_eal_mp_remote_launch does with more error checking.