Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-28 Thread Steve Muckle
On 09/20/2015 03:03 PM, Leo Yan wrote: > In this case of CPU is running at fmax, it's true that > task_fits_capacity() will return true. But here i think > cpu_overutilized() also will return true, so that means scheduler will > go back to use CFS's old way for loading balance. Finally tasks also

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-28 Thread Steve Muckle
On 09/20/2015 03:03 PM, Leo Yan wrote: > In this case of CPU is running at fmax, it's true that > task_fits_capacity() will return true. But here i think > cpu_overutilized() also will return true, so that means scheduler will > go back to use CFS's old way for loading balance. Finally tasks also

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-20 Thread Leo Yan
On Sun, Sep 20, 2015 at 11:39:16AM -0700, Steve Muckle wrote: > On 09/18/2015 03:34 AM, Dietmar Eggemann wrote: > >> Here should consider scenario for two groups have same capacity? > >> This will benefit for the case LITTLE.LITTLE. So the code will be > >> looks like below: > >> > >>int

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-20 Thread Steve Muckle
On 09/18/2015 03:34 AM, Dietmar Eggemann wrote: >> Here should consider scenario for two groups have same capacity? >> This will benefit for the case LITTLE.LITTLE. So the code will be >> looks like below: >> >> int target_sg_cpu = INT_MAX; >> >> if (capacity_of(max_cap_cpu) <=

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-20 Thread Steve Muckle
On 09/18/2015 03:34 AM, Dietmar Eggemann wrote: >> Here should consider scenario for two groups have same capacity? >> This will benefit for the case LITTLE.LITTLE. So the code will be >> looks like below: >> >> int target_sg_cpu = INT_MAX; >> >> if (capacity_of(max_cap_cpu) <=

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-20 Thread Leo Yan
On Sun, Sep 20, 2015 at 11:39:16AM -0700, Steve Muckle wrote: > On 09/18/2015 03:34 AM, Dietmar Eggemann wrote: > >> Here should consider scenario for two groups have same capacity? > >> This will benefit for the case LITTLE.LITTLE. So the code will be > >> looks like below: > >> > >>int

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-18 Thread Dietmar Eggemann
On 02/09/15 18:11, Leo Yan wrote: > On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: >> Let available compute capacity and estimated energy impact select >> wake-up target cpu when energy-aware scheduling is enabled and the >> system in not over-utilized (above the tipping point).

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-18 Thread Dietmar Eggemann
On 02/09/15 18:11, Leo Yan wrote: > On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: >> Let available compute capacity and estimated energy impact select >> wake-up target cpu when energy-aware scheduling is enabled and the >> system in not over-utilized (above the tipping point).

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-02 Thread Leo Yan
On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: > Let available compute capacity and estimated energy impact select > wake-up target cpu when energy-aware scheduling is enabled and the > system in not over-utilized (above the tipping point). > > energy_aware_wake_cpu() attempts

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-09-02 Thread Leo Yan
On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: > Let available compute capacity and estimated energy impact select > wake-up target cpu when energy-aware scheduling is enabled and the > system in not over-utilized (above the tipping point). > > energy_aware_wake_cpu() attempts

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-08-17 Thread Leo Yan
Hi Morten, On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: > Let available compute capacity and estimated energy impact select > wake-up target cpu when energy-aware scheduling is enabled and the > system in not over-utilized (above the tipping point). > >

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-08-17 Thread Leo Yan
Hi Morten, On Tue, Jul 07, 2015 at 07:24:15PM +0100, Morten Rasmussen wrote: Let available compute capacity and estimated energy impact select wake-up target cpu when energy-aware scheduling is enabled and the system in not over-utilized (above the tipping point). energy_aware_wake_cpu()

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-20 Thread Morten Rasmussen
On Thu, Jul 16, 2015 at 05:10:52PM -0700, Sai Gurrappadi wrote: > Hi Morten, > > On 07/07/2015 11:24 AM, Morten Rasmussen wrote: > > --- > > > +static int energy_aware_wake_cpu(struct task_struct *p, int target) > > +{ > > + struct sched_domain *sd; > > + struct sched_group *sg, *sg_target;

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-20 Thread Morten Rasmussen
On Thu, Jul 16, 2015 at 05:10:52PM -0700, Sai Gurrappadi wrote: Hi Morten, On 07/07/2015 11:24 AM, Morten Rasmussen wrote: --- +static int energy_aware_wake_cpu(struct task_struct *p, int target) +{ + struct sched_domain *sd; + struct sched_group *sg, *sg_target; + int

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-16 Thread Sai Gurrappadi
Hi Morten, On 07/07/2015 11:24 AM, Morten Rasmussen wrote: > --- > +static int energy_aware_wake_cpu(struct task_struct *p, int target) > +{ > + struct sched_domain *sd; > + struct sched_group *sg, *sg_target; > + int target_max_cap = INT_MAX; > + int target_cpu = task_cpu(p); >

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-16 Thread Sai Gurrappadi
Hi Morten, On 07/07/2015 11:24 AM, Morten Rasmussen wrote: --- +static int energy_aware_wake_cpu(struct task_struct *p, int target) +{ + struct sched_domain *sd; + struct sched_group *sg, *sg_target; + int target_max_cap = INT_MAX; + int target_cpu = task_cpu(p); +

[RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-07 Thread Morten Rasmussen
Let available compute capacity and estimated energy impact select wake-up target cpu when energy-aware scheduling is enabled and the system in not over-utilized (above the tipping point). energy_aware_wake_cpu() attempts to find group of cpus with sufficient compute capacity to accommodate the

[RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-07 Thread Morten Rasmussen
Let available compute capacity and estimated energy impact select wake-up target cpu when energy-aware scheduling is enabled and the system in not over-utilized (above the tipping point). energy_aware_wake_cpu() attempts to find group of cpus with sufficient compute capacity to accommodate the