[PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-19 Thread Mel Gorman
From: Peter Zijlstra (Intel) Instead of calculating how many (logical) CPUs to scan, compute how many cores to scan. This changes behaviour for anything !SMT2. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Mel Gorman --- kernel/sched/core.c | 18 +-

Re: [PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-18 Thread Mel Gorman
On Mon, Jan 18, 2021 at 04:14:36PM +0800, Li, Aubrey wrote: > > > > @@ -6124,6 +6126,8 @@ static int select_idle_smt(struct task_struct *p, > > struct sched_domain *sd, int t > > > > #else /* CONFIG_SCHED_SMT */ > > > > +#define sched_smt_weight 1 > > + > > static inline int

Re: [PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-18 Thread Li, Aubrey
On 2021/1/15 18:08, Mel Gorman wrote: > From: Peter Zijlstra (Intel) > > Instead of calculating how many (logical) CPUs to scan, compute how > many cores to scan. > > This changes behaviour for anything !SMT2. > > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Mel Gorman > --- >

[PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-15 Thread Mel Gorman
From: Peter Zijlstra (Intel) Instead of calculating how many (logical) CPUs to scan, compute how many cores to scan. This changes behaviour for anything !SMT2. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Mel Gorman --- kernel/sched/core.c | 18 +-

Re: [PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-14 Thread Mel Gorman
On Wed, Jan 13, 2021 at 05:49:58PM +0100, Vincent Guittot wrote: > > @@ -7444,11 +7444,20 @@ int sched_cpu_activate(unsigned int cpu) > > balance_push_set(cpu, false); > > > > #ifdef CONFIG_SCHED_SMT > > - /* > > -* When going up, increment the number of cores with SMT

Re: [PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-13 Thread Vincent Guittot
On Mon, 11 Jan 2021 at 16:50, Mel Gorman wrote: > > From: Peter Zijlstra (Intel) > > Instead of calculating how many (logical) CPUs to scan, compute how > many cores to scan. > > This changes behaviour for anything !SMT2. > > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Mel Gorman >

[PATCH 3/5] sched/fair: Make select_idle_cpu() proportional to cores

2021-01-11 Thread Mel Gorman
From: Peter Zijlstra (Intel) Instead of calculating how many (logical) CPUs to scan, compute how many cores to scan. This changes behaviour for anything !SMT2. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Mel Gorman --- kernel/sched/core.c | 19 ++-