Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-02 Thread Subhra Mazumdar
On 7/2/19 1:35 AM, Peter Zijlstra wrote: On Mon, Jul 01, 2019 at 03:08:41PM -0700, Subhra Mazumdar wrote: On 7/1/19 1:03 AM, Viresh Kumar wrote: On 28-06-19, 18:16, Subhra Mazumdar wrote: On 6/25/19 10:06 PM, Viresh Kumar wrote: @@ -5376,6 +5376,15 @@ static struct { #endif /* CONFIG_NO

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-02 Thread Peter Zijlstra
On Mon, Jul 01, 2019 at 03:08:41PM -0700, Subhra Mazumdar wrote: > On 7/1/19 1:03 AM, Viresh Kumar wrote: > > On 28-06-19, 18:16, Subhra Mazumdar wrote: > > > On 6/25/19 10:06 PM, Viresh Kumar wrote: > > > > @@ -5376,6 +5376,15 @@ static struct { > > > >#endif /* CONFIG_NO_HZ_COMMON */ > > > >

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-01 Thread Subhra Mazumdar
On 7/1/19 1:03 AM, Viresh Kumar wrote: On 28-06-19, 18:16, Subhra Mazumdar wrote: On 6/25/19 10:06 PM, Viresh Kumar wrote: We try to find an idle CPU to run the next task, but in case we don't find an idle CPU it is better to pick a CPU which will run the task the soonest, for performance rea

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-01 Thread Viresh Kumar
On 28-06-19, 18:16, Subhra Mazumdar wrote: > > On 6/25/19 10:06 PM, Viresh Kumar wrote: > > We try to find an idle CPU to run the next task, but in case we don't > > find an idle CPU it is better to pick a CPU which will run the task the > > soonest, for performance reason. > > > > A CPU which is

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-06-28 Thread Subhra Mazumdar
On 6/25/19 10:06 PM, Viresh Kumar wrote: We try to find an idle CPU to run the next task, but in case we don't find an idle CPU it is better to pick a CPU which will run the task the soonest, for performance reason. A CPU which isn't idle but has only SCHED_IDLE activity queued on it should be

[PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-06-25 Thread Viresh Kumar
We try to find an idle CPU to run the next task, but in case we don't find an idle CPU it is better to pick a CPU which will run the task the soonest, for performance reason. A CPU which isn't idle but has only SCHED_IDLE activity queued on it should be a good target based on this criteria as any