Re: [RFC] lib: optimize cpumask_local_spread()

2019-10-21 Thread Shaokun Zhang
Hi Michal, On 2019/10/17 20:37, Michal Hocko wrote: > On Thu 17-10-19 18:23:08, Shaokun Zhang wrote: >> From: yuqi jin >> >> In the multi-processor and NUMA system, A device may have many numa >> nodes belonging to multiple cpus. When we get a local numa, it is better >> to find the node closest

Re: [RFC] lib: optimize cpumask_local_spread()

2019-10-17 Thread Michal Hocko
On Thu 17-10-19 18:23:08, Shaokun Zhang wrote: > From: yuqi jin > > In the multi-processor and NUMA system, A device may have many numa > nodes belonging to multiple cpus. When we get a local numa, it is better > to find the node closest to the local numa node to return instead of > going to the

[RFC] lib: optimize cpumask_local_spread()

2019-10-17 Thread Shaokun Zhang
From: yuqi jin In the multi-processor and NUMA system, A device may have many numa nodes belonging to multiple cpus. When we get a local numa, it is better to find the node closest to the local numa node to return instead of going to the online cpu immediately. For example, In Huawei Kunpeng