Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-09 Thread David Christensen
Piotr says lscpu isn't available on ppc FreeBSD. I think this leaves us with two options: 1. either use sysctl with the risk that it may not return an accurate value 2. not support PPC for numa detection What do you think? I think point #2 is more not supporting FreeBSD on PPC for numa dete

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-09 Thread Juraj Linkeš
> -Original Message- > From: Thomas Monjalon > Sent: Thursday, September 9, 2021 10:09 AM > To: Juraj Linkeš ; Bruce Richardson > > Cc: Piotr Kubaj ; David Christensen > ; david.march...@redhat.com; > honnappa.nagaraha...@arm.com; ruifeng.w...@arm.com; > ferruh.yi...@intel.com; jerinjac

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-09 Thread Thomas Monjalon
09/09/2021 10:01, Bruce Richardson: > On Thu, Sep 09, 2021 at 07:20:27AM +, Juraj Linkeš wrote: > > Piotr says lscpu isn't available on ppc FreeBSD. I think this leaves us > > with two options: > > 1. either use sysctl with the risk that it may not return an accurate value > > 2. not support P

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-09 Thread Bruce Richardson
On Thu, Sep 09, 2021 at 07:20:27AM +, Juraj Linkeš wrote: > > > > -Original Message- > > From: Bruce Richardson > > Sent: Tuesday, August 31, 2021 10:03 AM > > To: Juraj Linkeš > > Cc: Piotr Kubaj ; David Christensen > > ; tho...@monjalon.net; > > david.march...@redhat.com; honnappa

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-09 Thread Juraj Linkeš
> -Original Message- > From: Bruce Richardson > Sent: Tuesday, August 31, 2021 10:03 AM > To: Juraj Linkeš > Cc: Piotr Kubaj ; David Christensen > ; tho...@monjalon.net; > david.march...@redhat.com; honnappa.nagaraha...@arm.com; > ruifeng.w...@arm.com; ferruh.yi...@intel.com; jerinjac..

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-09-01 Thread Piotr Kubaj
On 21-08-31 07:54:16, Juraj Linkeš wrote: > > > > -Original Message- > > From: Piotr Kubaj > > Sent: Tuesday, August 31, 2021 2:55 AM > > To: Juraj Linkeš > > Cc: David Christensen ; tho...@monjalon.net; > > david.march...@redhat.com; bruce.richard...@intel.com; > > honnappa.nagaraha...

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-31 Thread Piotr Kubaj
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š wrote: > > > > -Original Message- > > From: David Christensen > > Sent: Tuesday, August 3, 2021 1:29 AM > > To

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-31 Thread Bruce Richardson
On Tue, Aug 31, 2021 at 07:54:16AM +, Juraj Linkeš wrote: > > > > -Original Message- > > From: Piotr Kubaj > > Sent: Tuesday, August 31, 2021 2:55 AM > > To: Juraj Linkeš > > Cc: David Christensen ; tho...@monjalon.net; > > david.march...@redhat.com; bruce.richard...@intel.com; > >

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-31 Thread Juraj Linkeš
> -Original Message- > From: Piotr Kubaj > Sent: Tuesday, August 31, 2021 2:55 AM > To: Juraj Linkeš > Cc: David Christensen ; tho...@monjalon.net; > david.march...@redhat.com; bruce.richard...@intel.com; > honnappa.nagaraha...@arm.com; ruifeng.w...@arm.com; > ferruh.yi...@intel.com; je

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-03 Thread Juraj Linkeš
> -Original Message- > From: David Christensen > Sent: Tuesday, August 3, 2021 1:29 AM > To: Juraj Linkeš ; tho...@monjalon.net; > david.march...@redhat.com; bruce.richard...@intel.com; > honnappa.nagaraha...@arm.com; ruifeng.w...@arm.com; > ferruh.yi...@intel.com; jerinjac...@gmail.com;

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-02 Thread David Christensen
On 8/2/21 5:44 AM, Juraj Linkeš wrote: +if os.name == 'posix': +if os.path.isdir('/sys/devices/system/node'): +numa_nodes = glob.glob('/sys/devices/system/node/node*') +numa_nodes.sort() +print(int(os.path.basename(numa_nodes[-1])[4:]) + 1) +else: +subpr

Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-08-02 Thread Juraj Linkeš
> +if os.name == 'posix': > +if os.path.isdir('/sys/devices/system/node'): > +numa_nodes = 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

[dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection

2021-07-21 Thread Juraj Linkeš
Add an option to automatically discover the host's numa and cpu counts and use those values for a non cross-build. Give users the option to override the per-arch default values or values from cross files by specifying them on the command line with -Dmax_lcores and -Dmax_numa_nodes. Signed-off-by: