Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Vincent Guittot
On 1 April 2015 at 16:54, Xunlei Pang wrote: > Hi Vincent, > > On 1 April 2015 at 17:06, Vincent Guittot wrote: >> On 1 April 2015 at 05:37, Xunlei Pang wrote: >>> Hi Vincent, >>> >>> On 27 March 2015 at 23:59, Vincent Guittot >>> wrote: On 27 March 2015 at 15:52, Xunlei Pang wrote:

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Xunlei Pang
Hi Vincent, On 1 April 2015 at 17:06, Vincent Guittot wrote: > On 1 April 2015 at 05:37, Xunlei Pang wrote: >> Hi Vincent, >> >> On 27 March 2015 at 23:59, Vincent Guittot >> wrote: >>> On 27 March 2015 at 15:52, Xunlei Pang wrote: Hi Vincent, On 27 February 2015 at 23:54,

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Vincent Guittot
On 1 April 2015 at 05:37, Xunlei Pang wrote: > Hi Vincent, > > On 27 March 2015 at 23:59, Vincent Guittot wrote: >> On 27 March 2015 at 15:52, Xunlei Pang wrote: >>> Hi Vincent, >>> >>> On 27 February 2015 at 23:54, Vincent Guittot >>> wrote: /** @@ -6432,18 +6435,19 @@ static

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Vincent Guittot
On 1 April 2015 at 05:37, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 March 2015 at 23:59, Vincent Guittot vincent.guit...@linaro.org wrote: On 27 March 2015 at 15:52, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Xunlei Pang
Hi Vincent, On 1 April 2015 at 17:06, Vincent Guittot vincent.guit...@linaro.org wrote: On 1 April 2015 at 05:37, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 March 2015 at 23:59, Vincent Guittot vincent.guit...@linaro.org wrote: On 27 March 2015 at 15:52, Xunlei Pang

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-04-01 Thread Vincent Guittot
On 1 April 2015 at 16:54, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 1 April 2015 at 17:06, Vincent Guittot vincent.guit...@linaro.org wrote: On 1 April 2015 at 05:37, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 March 2015 at 23:59, Vincent Guittot

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-31 Thread Xunlei Pang
Hi Vincent, On 27 March 2015 at 23:59, Vincent Guittot wrote: > On 27 March 2015 at 15:52, Xunlei Pang wrote: >> Hi Vincent, >> >> On 27 February 2015 at 23:54, Vincent Guittot >> wrote: >>> /** >>> @@ -6432,18 +6435,19 @@ static inline void update_sd_lb_stats(struct lb_env >>> *env, struct

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-31 Thread Xunlei Pang
Hi Vincent, On 27 March 2015 at 23:59, Vincent Guittot vincent.guit...@linaro.org wrote: On 27 March 2015 at 15:52, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot vincent.guit...@linaro.org wrote: /** @@ -6432,18 +6435,19 @@ static

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-27 Thread Vincent Guittot
On 27 March 2015 at 15:52, Xunlei Pang wrote: > Hi Vincent, > > On 27 February 2015 at 23:54, Vincent Guittot > wrote: >> /** >> @@ -6432,18 +6435,19 @@ static inline void update_sd_lb_stats(struct lb_env >> *env, struct sd_lb_stats *sd >> >> /* >> * In case

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-27 Thread Xunlei Pang
Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot wrote: > /** > @@ -6432,18 +6435,19 @@ static inline void update_sd_lb_stats(struct lb_env > *env, struct sd_lb_stats *sd > > /* > * In case the child domain prefers tasks go to siblings > -

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-27 Thread Xunlei Pang
Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot vincent.guit...@linaro.org wrote: /** @@ -6432,18 +6435,19 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd /* * In case the child domain prefers tasks go to

Re: [PATCH v10 08/11] sched: replace capacity_factor by usage

2015-03-27 Thread Vincent Guittot
On 27 March 2015 at 15:52, Xunlei Pang pang.xun...@linaro.org wrote: Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot vincent.guit...@linaro.org wrote: /** @@ -6432,18 +6435,19 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd

[PATCH v10 08/11] sched: replace capacity_factor by usage

2015-02-27 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 v10 08/11] sched: replace capacity_factor by usage

2015-02-27 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.