Re: [dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-02-10 Thread Burakov, Anatoly
On 29-Jan-21 1:45 PM, Bruce Richardson wrote: On Fri, Jan 29, 2021 at 12:52:50PM +, Burakov, Anatoly wrote: On 29-Jan-21 10:05 AM, Bruce Richardson wrote: On Thu, Jan 28, 2021 at 04:07:07AM +, Oscar Zhao wrote: Hello dpdk devs, I would like to discuss the feasibility of implementing C

Re: [dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-01-29 Thread Oscar Zhao
FreeBSD rolled their own NUMA memory APIs on 12.0 (see https://www.freebsd.org/cgi/man.cgi?query=cpuset_getdomain&sektion=2&apropos=0&manpath=FreeBSD+12.2-RELEASE+and+Ports). These syscalls allow binding of a process/thread/jail memory allocation to a specific NUMA domain. I think the first ste

[dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-01-29 Thread Oscar Zhao
Hello dpdk devs, I would like to discuss the feasibility of implementing CPU topology detection on FreeBSD. Currently both eal_cpu_core_id() and eal_cpu_socket_id() in rte_eal library always return 0 on FreeBSD, making NUMA-aware development impossible without resorting to external libraries or

Re: [dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-01-29 Thread Bruce Richardson
On Fri, Jan 29, 2021 at 12:52:50PM +, Burakov, Anatoly wrote: > On 29-Jan-21 10:05 AM, Bruce Richardson wrote: > > On Thu, Jan 28, 2021 at 04:07:07AM +, Oscar Zhao wrote: > > > Hello dpdk devs, > > > > > > I would like to discuss the feasibility of implementing CPU topology > > > detectio

Re: [dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-01-29 Thread Burakov, Anatoly
On 29-Jan-21 10:05 AM, Bruce Richardson wrote: On Thu, Jan 28, 2021 at 04:07:07AM +, Oscar Zhao wrote: Hello dpdk devs, I would like to discuss the feasibility of implementing CPU topology detection on FreeBSD. Currently both eal_cpu_core_id() and eal_cpu_socket_id() in rte_eal library al

Re: [dpdk-dev] Feature Discussion: CPU topology detection on FreeBSD

2021-01-29 Thread Bruce Richardson
On Thu, Jan 28, 2021 at 04:07:07AM +, Oscar Zhao wrote: > Hello dpdk devs, > > I would like to discuss the feasibility of implementing CPU topology > detection on FreeBSD. Currently both eal_cpu_core_id() and > eal_cpu_socket_id() in rte_eal library always return 0 on FreeBSD, making > NUMA