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 69BC2A0C46; Tue, 31 Aug 2021 10:02:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5248B40E2D; Tue, 31 Aug 2021 10:02:11 +0200 (CEST) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) by mails.dpdk.org (Postfix) with ESMTP id D7FAA40698 for ; Tue, 31 Aug 2021 02:54:41 +0200 (CEST) Received: from anongoth.pl (unknown [192.168.1.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 74ADBD2E80; Tue, 31 Aug 2021 02:54:39 +0200 (CEST) Date: Tue, 31 Aug 2021 02:54:38 +0200 From: Piotr Kubaj To: Juraj =?utf-8?Q?Linke=C5=A1?= Cc: David Christensen , "thomas@monjalon.net" , "david.marchand@redhat.com" , "bruce.richardson@intel.com" , "Honnappa.Nagarahalli@arm.com" , "Ruifeng.Wang@arm.com" , "ferruh.yigit@intel.com" , "jerinjacobk@gmail.com" , "jerinj@marvell.com" , "stephen@networkplumber.org" , "dev@dpdk.org" Message-ID: References: <1624964105-6525-1-git-send-email-juraj.linkes@pantheon.tech> <1626872655-27496-1-git-send-email-juraj.linkes@pantheon.tech> <8198751beeaf4a94acc951b1c1d4fba4@pantheon.tech> <93e6576242a24380b83d8ca82359c28e@pantheon.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xYPsziTR22QhTJT5" Content-Disposition: inline In-Reply-To: <93e6576242a24380b83d8ca82359c28e@pantheon.tech> X-Mailman-Approved-At: Tue, 31 Aug 2021 10:02:10 +0200 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection 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 Sender: "dev" --xYPsziTR22QhTJT5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, sorry for the late answer. I suppose you mean sysctl command, not systemctl. On dual CPU systems, it returns 2. On single CPU ones, 1. On 21-08-03 10:21:50, Juraj Linke=C5=A1 wrote: >=20 >=20 > > -----Original Message----- > > From: David Christensen > > Sent: Tuesday, August 3, 2021 1:29 AM > > To: Juraj Linke=C5=A1 ; thomas@monjalon.net; > > david.marchand@redhat.com; bruce.richardson@intel.com; > > Honnappa.Nagarahalli@arm.com; Ruifeng.Wang@arm.com; > > ferruh.yigit@intel.com; jerinjacobk@gmail.com; jerinj@marvell.com; > > stephen@networkplumber.org; Piotr Kubaj > > Cc: dev@dpdk.org > > Subject: Re: [PATCH v5] build: optional NUMA and cpu counts detection > >=20 > >=20 > >=20 > > On 8/2/21 5:44 AM, Juraj Linke=C5=A1 wrote: > > >> +if os.name =3D=3D 'posix': > > >> + if os.path.isdir('/sys/devices/system/node'): > > >> + numa_nodes =3D glob.glob('/sys/devices/system/node/node*') > > >> + numa_nodes.sort() > > >> + print(int(os.path.basename(numa_nodes[-1])[4:]) + 1) > > >> + else: > > >> + subprocess.run(['sysctl', '-n', 'vm.ndomains'], check=3DFal= se) > > >> + > > > > > > Bruce, David, Thomas, > > > > > > Is DPDK actually supported on Power9 FreeBSD? Is anyone using this > > combination? How can we address the open question of what exactly does > > sysctl -n vm.ndomains return on a Power9 FreeBSD system? Or should we j= ust > > leave it as is? Or maybe add 1 to the output (as we do in other cases)? > >=20 > > Not supported within IBM, but you can buy OpenPOWER boxes from 3rd part= ies > > such as Raptor Computing Systems so there may be customers using DPDK on > > POWER with FreeBSD that I don't track. Adding Piotr Kubaj who has comm= ented > > on POWER/FreeBSD issues in this past. > >=20 > > Dave >=20 > Thanks, David. >=20 > Piotr, to provide more context, we're trying to figure out what the highe= st NUMA node on a system is. > On P9 systems, here's how NUMA nodes look like in Linux: > NUMA node0 CPU(s): 0-63 > NUMA node8 CPU(s): 64-127 > NUMA node252 CPU(s): > NUMA node253 CPU(s): > NUMA node254 CPU(s): > NUMA node255 CPU(s): > The highest NUMA with CPUs is node8. >=20 > We're trying to get the highest NUMA with CPUs on P9 FreeBSD systems, but= we don't know whether FreeBSD NUMA layout looks the same (does FreeBSD rep= ort non-contiguous NUMA nodes as Linxu above, or does it renumerate) a what= does "systemctl -n vm.ndomains" return. Could you check these for us? --xYPsziTR22QhTJT5--