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 1DB96A00C3; Tue, 20 Sep 2022 15:26:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B816F40DFB; Tue, 20 Sep 2022 15:26:53 +0200 (CEST) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by mails.dpdk.org (Postfix) with ESMTP id BABFD4069B for ; Tue, 20 Sep 2022 15:26:52 +0200 (CEST) Received: by mail-ej1-f47.google.com with SMTP id sb3so6095541ejb.9 for ; Tue, 20 Sep 2022 06:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=f1Hs1HZTzDk+CTJnP4mB2Qh47hI3rFBthz6aucRijfg=; b=alg8mTyzO/l+mCfOTDYdxrZgR8pLOV6hogG9BciD2q7pCH1aASdtTzPtT+FtqUJw2G QeN59Dt8h4Cah3jthxyYCk4gKI92/1tvQEXsus5lYPVdAgJE4CL7oav5/w0PG87J0t+j FE5fYTUitseKeDkR9csKxEHLse6l0HclPK857N76lIFhaK2rmH4UVNXGyZuKOWTbPdUQ oj5Vd28pRWVkfxn0o0rJ657dSPNTe+89sAHr9EpfqO1NBCiZeyWS8Xw6q/kXnG4RxSKB sUV1QjnTjPZGm4YqC/jUYzMPDS2iRcsN4X6H8izsX5tfx74/fOok8CJ7XDRrxYejMMrZ CKgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=f1Hs1HZTzDk+CTJnP4mB2Qh47hI3rFBthz6aucRijfg=; b=g+FJevGVbewlCOyBFfywG0i3QTowK5HMakb0moJBnaduC1xJV5ZZDpLTUrSlhktWpH 3/JewFRvthuc/QzakfScaP484rRJkaDbaokKUHiqA7fnddo7VKvQNdsXX/45JvCtJpJu v2ok624aH3I0gnyU7qUMhjt3wbZ3zM3thKklNHhu75v5PVpH9oOQ1abYn1Ifn7fxyHl4 EZMDl/mjzhRZXxOjToAlOlizb6JukH09huZAKyIsL3yynVslanUF+6z9ahb4j6dhSXLX /Bu5uWRtcAleompVqJ6UD95Fq2WZFXiIN1KbTp6AIsv47RS5A5C+M/hd9tLy8pt1CK8L eQjA== X-Gm-Message-State: ACrzQf3pQyO7AEns+XUeHCs2ZYdRSAnHZiPyNKzv+89wCKNOdy9D5bpG FtNuva/yMF/bsTQxIHgNnqgHZudRz3pW2CPpeDg= X-Google-Smtp-Source: AMsMyM6FbBuSykmoFTkijAlw361BxT7mvC9xoP66idvx4GlG2guwNEyQ3GhNsGYWF0Yq8P83x52gNbpKa8nFbyZss5I= X-Received: by 2002:a17:907:9804:b0:77f:364f:b797 with SMTP id ji4-20020a170907980400b0077f364fb797mr16836372ejc.88.1663680412344; Tue, 20 Sep 2022 06:26:52 -0700 (PDT) MIME-Version: 1.0 References: <20220916081313.1680e742@hermes.local> <20220919100403.0f8bd845@hermes.local> In-Reply-To: <20220919100403.0f8bd845@hermes.local> From: Kamaraj P Date: Tue, 20 Sep 2022 18:56:39 +0530 Message-ID: Subject: Re: Cannot set affinity - pthread_setaffinity_np - DPDK21 To: Stephen Hemminger Cc: Fred.L.Templin@boeing.com, "Burakov, Anatoly" , Bruce Richardson , David Marchand , Nageswara Rao Penumarthy , dev , kalas@cisco.com Content-Type: multipart/alternative; boundary="000000000000ff679005e91bc769" 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 --000000000000ff679005e91bc769 Content-Type: text/plain; charset="UTF-8" Thank you for the clarification. On Mon, 19 Sep 2022, 10:34 pm Stephen Hemminger, wrote: > On Sun, 18 Sep 2022 22:05:57 +0530 > Kamaraj P wrote: > > > Yes. The core mask we have aligned to separate cgroup. Probably this > might > > be an issue here. We will change the alignment in our DPDK application. > > BTW is there a way to check the cores affinity set to DPDK after > > rte_eail_init ? Do we have to use the taskset command ? > > DPDK doesn't (and shouldn't) know about what cgroups has set. > You need to align the cgroup and the startup flags of the application. > --000000000000ff679005e91bc769 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the clarification.=C2=A0

On Mon, 19 Sep 2022= , 10:34 pm Stephen Hemminger, <stephen@networkplumber.org> wrote:
On Sun, 18 Sep 2022 22:05:57 +0530
Kamaraj P <pkamaraj@gmail.com> wrote:

> Yes. The core mask we have aligned to separate cgroup. Probably this m= ight
> be an issue here. We will change the alignment in=C2=A0 our DPDK appli= cation.
> BTW is there a way to check the cores affinity set to DPDK after
> rte_eail_init ? Do we have to use the taskset command ?

DPDK doesn't (and shouldn't) know about what cgroups has set.
You need to align the cgroup and the startup flags of the application.
--000000000000ff679005e91bc769--