Re: [PATCH RESEND v9 08/10] sched: replace capacity_factor by usage

2015-02-20 Thread Vincent Guittot
On 20 February 2015 at 12:14, Peter Zijlstra wrote: > On Thu, Jan 15, 2015 at 11:09:28AM +0100, Vincent Guittot wrote: > >> Finally, the sched_group->sched_group_capacity->capacity_orig has been >> removed >> because it's no more used during load balance. > > Maybe do that in a separate patch to

Re: [PATCH RESEND v9 08/10] sched: replace capacity_factor by usage

2015-02-20 Thread Peter Zijlstra
On Thu, Jan 15, 2015 at 11:09:28AM +0100, Vincent Guittot wrote: > Finally, the sched_group->sched_group_capacity->capacity_orig has been removed > because it's no more used during load balance. Maybe do that in a separate patch to avoid cluttering this one? > [1] https://lkml.org/lkml/2014/8/12

[PATCH RESEND v9 08/10] sched: replace capacity_factor by usage

2015-01-15 Thread Vincent Guittot
The scheduler tries to compute how many tasks a group of CPUs can handle by assuming that a task's load is SCHED_LOAD_SCALE and a CPU's capacity is SCHED_CAPACITY_SCALE. group_capacity_factor divides the capacity of the group by SCHED_LOAD_SCALE to estimate how many task can run in the group. Then,