Re: [PATCH v2 1/3] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-11 Thread Alexander Gordeev
On Tue, Aug 11, 2020 at 04:26:50PM +0900, Namhyung Kim wrote: > Hello, > > On Mon, Aug 10, 2020 at 3:22 PM Alexander Gordeev > wrote: > > > > It is currently assumed that each node contains at most > > nr_cpus/nr_nodes CPUs and node CPU ranges do not overlap. > > That assumption is generally

Re: [PATCH v2 1/3] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-11 Thread Namhyung Kim
Hello, On Mon, Aug 10, 2020 at 3:22 PM Alexander Gordeev wrote: > > It is currently assumed that each node contains at most > nr_cpus/nr_nodes CPUs and node CPU ranges do not overlap. > That assumption is generally incorrect as there are archs > where a CPU number does not depend on to its node

[PATCH v2 1/3] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-10 Thread Alexander Gordeev
It is currently assumed that each node contains at most nr_cpus/nr_nodes CPUs and node CPU ranges do not overlap. That assumption is generally incorrect as there are archs where a CPU number does not depend on to its node number. This update removes the described assumption by simply calling