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 11CB2A034C; Wed, 21 Sep 2022 10:07:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B375540697; Wed, 21 Sep 2022 10:07:37 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 2E9D74014F for ; Wed, 21 Sep 2022 10:07:36 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D38BB5C0109; Wed, 21 Sep 2022 04:07:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 21 Sep 2022 04:07:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1663747655; x= 1663834055; bh=0C3aGYX828bH2XqbNOYDF7nyH65LvCstORhVY+OU55w=; b=Q njf+8zGeDkX84NN7KCgCUJCf0Ip2bRHQwUbnsU+mTnHZCGHYLPmR5WFjDfqsV2VE 07Uohcp2fVhh0hTZNa/6gIRC2sycg7L1UzYXcA34KEeZ+kJqBJXSVSh75hji+yrA FcA2gqUtLMGMVK68ZcAGYNanSRO4Ot4KWdfnzoqEeWxi3FNhvyyo8OeXltUwbVK0 P8feKtxcV7I80GdioA3Vl4qD7N5DcLIvpiljFtAmnIIUCrMtcfys6phESnVt4jIr rUcbGHheikBLH/tO3jXnGI3lGtKGYf/+Jehji+3N5429ohfQ5Y7ykcxY4+lUAx1f 1gkM7SP0hN2ky36fysDrw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663747655; x= 1663834055; bh=0C3aGYX828bH2XqbNOYDF7nyH65LvCstORhVY+OU55w=; b=N MhcDs9qeNmULJ61CF5CsSNtblgvGj5a3zYXtZI9IRrlXYPFQbYpjW/5rqKdiWqhq ITvgJL0bJy6B56TN7rqn+VdVQgfY+dNtB7jx36mERgpRgPLLX9uorXQNqYTLwvDP hmUQNwGCGeTEBxjtcFDCqwhNX26Zd6hQ4K4ik5QeLc5iZ5JmpumK78scCyaQKzET UDFOCszwQMeJIMbnGAyCP31eIhZpDbPPfxC1fpv+aEa0bcNBEOwbASvZV1vL7IWn JJ9C2+14cLiLDWR42YNtDvVODws+Eb/LUBvy7ENUkJOzz3TbP8CcSrrVVudoO7CQ MgKviGzV7G/1Bmt91Buug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefuddgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeegtddtleejjeegffekkeektdejvedtheevtdekiedvueeuvdei uddvleevjeeujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Sep 2022 04:07:34 -0400 (EDT) From: Thomas Monjalon To: Nole Zhang Cc: Nole Zhang , "dev@dpdk.org" , Chaoyong He , oss-drivers Subject: Re: FW: [PATCH v1] buildtools: ensure the NUMA nodes are counted correct Date: Wed, 21 Sep 2022 10:07:33 +0200 Message-ID: <14724757.tv2OnDr8pf@thomas> In-Reply-To: References: <1659426855-11014-1-git-send-email-chaoyong.he@corigine.com> <4213175.ejJDZkT8p0@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 Please send a v2 with the proper explanations. 21/09/2022 09:19, Nole Zhang: >=20 > > -----Original Message----- > > From: Thomas Monjalon > > Sent: 2022=E5=B9=B49=E6=9C=8820=E6=97=A5 21:23 > > To: Niklas Soderlund > > Cc: Nole Zhang ; dev@dpdk.org; Chaoyong He > > ; oss-drivers > > Subject: Re: FW: [PATCH v1] buildtools: ensure the NUMA nodes are count= ed > > correct > >=20 > > Hi, > >=20 > > 20/09/2022 12:11, Niklas Soderlund: > > > Hi Thomas, > > > > > > Have you checked if this address the same issue you where seeing? Do > > > you think we can move forward with this fix? > >=20 > > Yes. No need to show lscpu output, > > but the output of the DPDK initialization would be more interesting. > >=20 >=20 > OK, this is the DPDK initialization. >=20 > The original code, the dpdkd initialized info: > EAL: Detected CPU lcores: 128 > EAL: Detected NUMA nodes: 10 > EAL: Static memory layout is selected, amount of reserved memory can be a= djusted with -m or --socket-mem > EAL: Detected static linkage of DPDK > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'VA' > EAL: VFIO support initialized >=20 > Revised code, the dpdkd initialized info: > EAL: Detected CPU lcores: 128 > EAL: Detected NUMA nodes: 16 > EAL: Static memory layout is selected, amount of reserved memory can be a= djusted with -m or --socket-mem > EAL: Detected static linkage of DPDK > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'VA' > EAL: VFIO support initialized >=20 > >=20 > > > On 2022-08-31 10:47:24 +0200, Nole Zhang wrote: > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Thomas Monjalon > > > > > Sent: 2022=E5=B9=B48=E6=9C=8829=E6=97=A5 21:15 > > > > > To: Nole Zhang ; Chaoyong He > > > > > > > > > > Subject: Re: [PATCH v1] buildtools: ensure the NUMA nodes are > > > > > counted correct > > > > > > > > > > 29/08/2022 13:17, Nole Zhang: > > > > > > From: Thomas Monjalon > > > > > > > 02/08/2022 09:54, Chaoyong He: > > > > > > > > From: Peng Zhang > > > > > > > > > > > > > > > > Sorting a list of strings with the format "node[0-9]+" in > > > > > > > > order to find the largest integer by looking at the last > > > > > > > > item after the sort breaks. But if there are more then 10 > > > > > > > > items as a string sort will sort "node10" before "node2", i= t will get > > the error NUMA nodes. > > > > > > > > > > > > > > What is the error you are seeing? > > > > > > > > > > > > > > > > > > > > We get the error NUMA, in this example, we get the NUMA nodes is > > > > > > 10, But at fact, it has 11 NUMA. > > > > > > > > > > Please give more details, where do you see this error? > > > > > We should know how to reproduce and check we have the same issue. > > > > > Thanks > > > > > > > > > > Please reply with a detailed answer on the mailing list. > > > > > > > > > In the China Phytium S2500 CPU + INSPUR server, it has 16 NUMA. > > > > The details are as follows: > > > > > > > > ~#: lscpu > > > > > > > > Architecture: aarch64 > > > > CPU op-mode(s): 64-bit > > > > Byte Order: Little Endian > > > > CPU(s): 128 > > > > On-line CPU(s) list: 0-127 > > > > Thread(s) per core: 1 > > > > Core(s) per socket: 64 > > > > Socket(s): 2 > > > > NUMA node(s): 16 > > > > Vendor ID: 0x70 > > > > Model: 3 > > > > Model name: S2500 > > > > Stepping: 0x1 > > > > BogoMIPS: 100.00 > > > > L1d cache: 4 MiB > > > > L1i cache: 4 MiB > > > > L2 cache: 64 MiB > > > > L3 cache: 128 MiB > > > > NUMA node0 CPU(s): 0-7 > > > > NUMA node1 CPU(s): 8-15 > > > > NUMA node2 CPU(s): 16-23 > > > > NUMA node3 CPU(s): 24-31 > > > > NUMA node4 CPU(s): 32-39 > > > > NUMA node5 CPU(s): 40-47 > > > > NUMA node6 CPU(s): 48-55 > > > > NUMA node7 CPU(s): 56-63 > > > > NUMA node8 CPU(s): 64-71 > > > > NUMA node9 CPU(s): 72-79 > > > > NUMA node10 CPU(s): 80-87 > > > > NUMA node11 CPU(s): 88-95 > > > > NUMA node12 CPU(s): 96-103 > > > > NUMA node13 CPU(s): 104-111 > > > > NUMA node14 CPU(s): 112-119 > > > > NUMA node15 CPU(s): 120-127 > > > > Flags: half thumb fastmult vfp edsp neon vfpv3 tls vf= pv4 idiva idivt > > lpae evtstrm > > > > > > > > > > > > I use meson build -Dmax_lcores=3Ddetect -Dmax_numa_nodes=3Ddetect = to > > compile, then dpdk initialization only shows 10 numa. > > > > > > > >=20 > >=20 > >=20 > >=20 >=20 >=20