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
> -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
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
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
> -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..
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...
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
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;
> >
> -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
> -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;
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
> +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
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:
13 matches
Mail list logo