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 908F8A00C4 for ; Thu, 28 Jul 2022 11:03:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 813F742B73; Thu, 28 Jul 2022 11:03:15 +0200 (CEST) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by mails.dpdk.org (Postfix) with ESMTP id 2266F40156 for ; Fri, 22 Jul 2022 10:34:43 +0200 (CEST) Received: by mail-ot1-f51.google.com with SMTP id by10-20020a056830608a00b0061c1ac80e1dso2879297otb.13 for ; Fri, 22 Jul 2022 01:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=cUb5/REvIYYBq42kpt2LM37p+DlreURX9uen9iwWvms=; b=RDVrhjjguwITJxWGcUkpCAW+eLFRH/FxHSaFPHYs3LS9o+CRPlQFOb7b9ykJiRvP// ralXCALHhaNXhNOSw+JCCky6YT95WX56zO7XphM7QRQAHexW0VGMZxXipQlAYBrZzZo1 w2G4HLsXATxAba30bCEG5G7NPl6nZ1ygnF4QCNZcdurijci6bXZbsmRCyhyeJhcHAe30 oowYwE1FD06Xe78OruJQnDfaW3+mkGQQwT0LHxVEn2q652qtwEMpuriQJH3Ww7aifbGs /ls5jUYQ8s6L5wR0EG6EvKgTkIzcUkROky3RSp7llbjydtGbok1rMnExCbK9na8l+FP6 GY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cUb5/REvIYYBq42kpt2LM37p+DlreURX9uen9iwWvms=; b=qvnXIbmalgLyuGWnTppCoKqpkYV8M5GiXrdu5KEk5oOJdThpr4LaCWEcVAZlLBrSua 3d9bNAnvkiNAJqV5qWlZ9g806dgxT9x1iu1QD81E+KNjkFE4LVzS1puBjni3j+t8NUQt YuxGkqWeVu3gCBf5Sl8Yfik2jk3BkHXk5O1SxXPA+dirBJC25T7DKaK+cr6jObvhCwKq ydycDGF9eyoBYl7JI1WSILJfLWrKQoXHTlfIo5vVh492MHFgaCSizmzG6FHBffzCzNqY zsIH9CfVXlxBAfGkf2gWgry2juRkVe24/6nU8o0pkPKqdTVwkTsWXyWKMxXO7uhi9x2q OgSw== X-Gm-Message-State: AJIora9le1C+/kzx/3yddnDLJNRm7QpwYKmUBCJj1bDu4xJWkSsVB1nT T6kTbQ8NveMjGEQZ9Ucb2Jq2xtc0evVmUyeWYWzaGmBQCWM= X-Google-Smtp-Source: AGRyM1sBwpM6OU2QTLt2+QQDrGzBeazoR1a8HsKUXpLlsF/Sl+6FUcXCYNn8dpRINUXCLSGj5Nx9wxhNVEArkNLX88Q= X-Received: by 2002:a9d:71c4:0:b0:61c:59fd:62e7 with SMTP id z4-20020a9d71c4000000b0061c59fd62e7mr893709otj.142.1658478882048; Fri, 22 Jul 2022 01:34:42 -0700 (PDT) MIME-Version: 1.0 From: Pico Geyer Date: Fri, 22 Jul 2022 10:34:32 +0200 Message-ID: Subject: Numa node detection To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 28 Jul 2022 11:03:14 +0200 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 Good day, I've started testing a dpdk application on a new system with more cores than I usually do. I'm running into an error relating to the number of numa nodes on the system. We use the socket-mem argument to allocate just the right amount of huge pages on each numa node (socket?). lscpu output looks as follows: lscpu Architecture: x86_64 CPU(s): 160 On-line CPU(s) list: 0-159 Thread(s) per core: 2 Core(s) per socket: 20 Socket(s): 4 NUMA node(s): 8 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz NUMA node0 CPU(s): 0-9,80-89 NUMA node1 CPU(s): 10-19,90-99 NUMA node2 CPU(s): 20-29,100-109 NUMA node3 CPU(s): 30-39,110-119 NUMA node4 CPU(s): 40-49,120-129 NUMA node5 CPU(s): 50-59,130-139 NUMA node6 CPU(s): 60-69,140-149 NUMA node7 CPU(s): 70-79,150-159 So my current scripting mechanism would use the following --socket-mem argument to start a dpdk instance on the first numa node: app_name --socket-mem=570,0,0,0,0,0,0,0 --core 1 On this system, I now get: EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: invalid parameters for --socket-mem I suppose dkdk is looking at the number of sockets and I've been using number of numa nodes in my scripts. However it's not clear to me how to simply fix the issue since hugepage allocation is done on the level of numa nodes. Also eal init seems to say it detected 4 numa nodes when the system has 8, at least according to lscpu output. I'm on dpdk 20.11 if that's pertinent. Thanks in advance for any suggestions. Pico