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

2014-11-24 Thread Morten Rasmussen
On Mon, Nov 24, 2014 at 02:41:28PM +, Vincent Guittot wrote: > On 21 November 2014 at 13:37, Morten Rasmussen > wrote: > > On Mon, Nov 03, 2014 at 04:54:45PM +, Vincent Guittot wrote: > > [snip] > > >> */ > >> if (prefer_sibling && sds->local && > >> -

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

2014-11-24 Thread Vincent Guittot
On 21 November 2014 at 13:37, Morten Rasmussen wrote: > On Mon, Nov 03, 2014 at 04:54:45PM +, Vincent Guittot wrote: [snip] >> */ >> if (prefer_sibling && sds->local && >> - sds->local_stat.group_has_free_capacity) >> -

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

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:45PM +, Vincent Guittot wrote: [snip] */ if (prefer_sibling sds-local - sds-local_stat.group_has_free_capacity) -

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

2014-11-24 Thread Morten Rasmussen
On Mon, Nov 24, 2014 at 02:41:28PM +, 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:45PM +, Vincent Guittot wrote: [snip] */ if (prefer_sibling sds-local

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

2014-11-21 Thread Morten Rasmussen
On Mon, Nov 03, 2014 at 04:54:45PM +, Vincent Guittot wrote: > 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 >

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

2014-11-21 Thread Morten Rasmussen
On Mon, Nov 03, 2014 at 04:54:45PM +, Vincent Guittot wrote: 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

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

2014-11-19 Thread Vincent Guittot
On 19 November 2014 16:15, pang.xunlei wrote: > On 4 November 2014 00:54, Vincent Guittot wrote: [snip] >> +static inline bool >> +group_has_capacity(struct lb_env *env, struct sg_lb_stats *sgs) >> { >> - unsigned int capacity_factor, smt, cpus; >> - unsigned int capacity,

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

2014-11-19 Thread pang.xunlei
On 4 November 2014 00:54, Vincent Guittot wrote: > 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

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

2014-11-19 Thread pang.xunlei
On 4 November 2014 00:54, Vincent Guittot vincent.guit...@linaro.org wrote: 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

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

2014-11-19 Thread Vincent Guittot
On 19 November 2014 16:15, pang.xunlei pang.xun...@linaro.org wrote: On 4 November 2014 00:54, Vincent Guittot vincent.guit...@linaro.org wrote: [snip] +static inline bool +group_has_capacity(struct lb_env *env, struct sg_lb_stats *sgs) { - unsigned int capacity_factor, smt, cpus; -

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

2014-11-03 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.

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

2014-11-03 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.