Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-27 Thread Joel Fernandes
On Mon, Oct 26, 2020 at 10:01:31AM +0100, Peter Zijlstra wrote: > On Sat, Oct 24, 2020 at 08:27:16AM -0400, Vineeth Pillai wrote: > > > > > > On 10/24/20 7:10 AM, Vineeth Pillai wrote: > > > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > > index 93a3b874077d..4cae5ac48b60 10064

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-27 Thread Joel Fernandes
On Tue, Oct 27, 2020 at 10:19:11AM -0400, Joel Fernandes wrote: > On Mon, Oct 26, 2020 at 10:01:31AM +0100, Peter Zijlstra wrote: > > On Sat, Oct 24, 2020 at 08:27:16AM -0400, Vineeth Pillai wrote: > > > > > > > > > On 10/24/20 7:10 AM, Vineeth Pillai wrote: > > > > > > > > diff --git a/kernel/s

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-27 Thread Joel Fernandes
On Sat, Oct 24, 2020 at 08:27:16AM -0400, Vineeth Pillai wrote: > > > On 10/24/20 7:10 AM, Vineeth Pillai wrote: > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 93a3b874077d..4cae5ac48b60 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -4428,12

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-26 Thread Li, Aubrey
On 2020/10/26 17:01, Peter Zijlstra wrote: > On Sat, Oct 24, 2020 at 08:27:16AM -0400, Vineeth Pillai wrote: >> >> >> On 10/24/20 7:10 AM, Vineeth Pillai wrote: >>> >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>> index 93a3b874077d..4cae5ac48b60 100644 >>> --- a/kernel/sched/fair.c >

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-26 Thread Peter Zijlstra
On Sat, Oct 24, 2020 at 08:27:16AM -0400, Vineeth Pillai wrote: > > > On 10/24/20 7:10 AM, Vineeth Pillai wrote: > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 93a3b874077d..4cae5ac48b60 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -4428,12

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-24 Thread Li, Aubrey
On 2020/10/24 20:27, Vineeth Pillai wrote: > > > On 10/24/20 7:10 AM, Vineeth Pillai wrote: >> >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> index 93a3b874077d..4cae5ac48b60 100644 >> --- a/kernel/sched/fair.c >> +++ b/kernel/sched/fair.c >> @@ -4428,12 +4428,14 @@ pick_next_entity

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-24 Thread Vineeth Pillai
On 10/24/20 7:10 AM, Vineeth Pillai wrote: diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 93a3b874077d..4cae5ac48b60 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4428,12 +4428,14 @@ pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr)   

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-24 Thread Vineeth Pillai
Hi Aubrey, On 10/23/20 10:48 PM, Li, Aubrey wrote: 2. Do you see the issue in v7? Not much if at all has changed in this part of the code from v7 -> v8 but could be something in the newer kernel. IIRC, I can run uperf successfully on v7. I'm on tip/master 2d3e8c9424c9 (origin/master) "Merge

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-23 Thread Li, Aubrey
On 2020/10/24 5:47, Joel Fernandes wrote: > On Fri, Oct 23, 2020 at 01:25:38PM +0800, Li, Aubrey wrote: > @@ -2517,6 +2528,7 @@ const struct sched_class dl_sched_class > > #ifdef CONFIG_SMP > .balance= balance_dl, > + .pick_task = pick_tas

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-23 Thread Joel Fernandes
On Fri, Oct 23, 2020 at 01:25:38PM +0800, Li, Aubrey wrote: > >>> @@ -2517,6 +2528,7 @@ const struct sched_class dl_sched_class > >>> > >>> #ifdef CONFIG_SMP > >>> .balance= balance_dl, > >>> + .pick_task = pick_task_dl, > >>> .select_task_rq =

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Li, Aubrey
On 2020/10/22 23:25, Joel Fernandes wrote: > On Thu, Oct 22, 2020 at 12:59 AM Li, Aubrey wrote: >> >> On 2020/10/20 9:43, Joel Fernandes (Google) wrote: >>> From: Peter Zijlstra >>> >>> Because sched_class::pick_next_task() also implies >>> sched_class::set_next_task() (and possibly put_prev_task

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Joel Fernandes
On Thu, Oct 22, 2020 at 12:59 AM Li, Aubrey wrote: > > On 2020/10/20 9:43, Joel Fernandes (Google) wrote: > > From: Peter Zijlstra > > > > Because sched_class::pick_next_task() also implies > > sched_class::set_next_task() (and possibly put_prev_task() and > > newidle_balance) it is not state inv

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Li, Aubrey
On 2020/10/20 9:43, Joel Fernandes (Google) wrote: > From: Peter Zijlstra > > Because sched_class::pick_next_task() also implies > sched_class::set_next_task() (and possibly put_prev_task() and > newidle_balance) it is not state invariant. This makes it unsuitable > for remote task selection. >

[PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Because sched_class::pick_next_task() also implies sched_class::set_next_task() (and possibly put_prev_task() and newidle_balance) it is not state invariant. This makes it unsuitable for remote task selection. Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel