Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-24 Thread Morten Rasmussen
On Mon, Nov 24, 2014 at 02:45:45PM +, Vincent Guittot wrote: > On 21 November 2014 at 13:37, Morten Rasmussen > wrote: > > On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: > > >> > >> + /* > >> + * The dst_cpu is idle and the src_cpu CPU has only 1 CFS task. > >> +

Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-24 Thread Vincent Guittot
On 21 November 2014 at 13:37, Morten Rasmussen wrote: > On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: >> >> + /* >> + * The dst_cpu is idle and the src_cpu CPU has only 1 CFS task. >> + * It's worth migrating the task if the src_cpu's capacity is reduced >> +

Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-24 Thread Vincent Guittot
On 21 November 2014 at 13:37, Morten Rasmussen morten.rasmus...@arm.com wrote: On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: + /* + * The dst_cpu is idle and the src_cpu CPU has only 1 CFS task. + * It's worth migrating the task if the src_cpu's capacity is

Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-24 Thread Morten Rasmussen
On Mon, Nov 24, 2014 at 02:45:45PM +, Vincent Guittot wrote: On 21 November 2014 at 13:37, Morten Rasmussen morten.rasmus...@arm.com wrote: On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: + /* + * The dst_cpu is idle and the src_cpu CPU has only 1 CFS

Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-21 Thread Morten Rasmussen
On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: > When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining > capacity for CFS tasks can be significantly reduced. Once we detect such > situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle >

Re: [PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-21 Thread Morten Rasmussen
On Mon, Nov 03, 2014 at 04:54:47PM +, Vincent Guittot wrote: When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load

[PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-03 Thread Vincent Guittot
When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load balance to check if it's worth moving its tasks on an idle CPU. Once

[PATCH v9 10/10] sched: move cfs task on a CPU with higher capacity

2014-11-03 Thread Vincent Guittot
When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load balance to check if it's worth moving its tasks on an idle CPU. Once