> >>> [However, we also would need to find out how BSD numbers the > >>> domains, too, as it's possible an OS could just call them 0 and 1, > >>> rather than > >>> 0 and 8 if it wanted to.] > >>> > >>> In short, we'd need to test to be sure. Is FreeBSD on P9 a supported > >>> config, and if so can the P9 maintainer perhaps help out with testing? > >> > >> Results of the v4 patch on an IBM AC922 P9 system with Linux: > >> > > > > Can you get results from FreeBSD as well? > > I can't help with FreeBSD here, I only have Linux on systems within IBM. >
This is an open question still then. I guess we'll have to go with sysctl -n vm.ndomains. > > > >> $ python3 get-numa-count.py > >> 8 > >> NUMA node0 CPU(s): 0-63 > >> NUMA node8 CPU(s): 64-127 > > <snip> > > Is this the right number for your case, i.e. are you able to use both numa > > nodes > when RTE_MAX_NUMA_NODES=8? > > node8 above is the ninth NUMA node so I'd need to use > RTE_MAX_NUMA_NODES=9 as a minimum so that any arrays using that value > are adequately sized. > > Dave Ok, the proper value to return is highest numa node + 1 then.