Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-06-03 Thread Vincent Guittot
On 2 June 2014 08:21, Preeti U Murthy wrote: > On 05/29/2014 07:25 PM, Peter Zijlstra wrote: >> On Fri, May 23, 2014 at 05:53:05PM +0200, 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

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-06-01 Thread Preeti U Murthy
On 05/29/2014 07:25 PM, Peter Zijlstra wrote: > On Fri, May 23, 2014 at 05:53:05PM +0200, 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 capacity is >> SCHED_POWER_SCALE. >> We can no

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-30 Thread Vincent Guittot
On 30 May 2014 08:34, Peter Zijlstra wrote: > On Thu, May 29, 2014 at 09:56:24PM +0200, Vincent Guittot wrote: >> On 29 May 2014 16:02, Peter Zijlstra wrote: >> > On Fri, May 23, 2014 at 05:53:05PM +0200, Vincent Guittot wrote: >> >> @@ -6052,8 +6006,8 @@ static inline void update_sd_lb_stats(str

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Peter Zijlstra
On Thu, May 29, 2014 at 09:56:24PM +0200, Vincent Guittot wrote: > On 29 May 2014 16:02, Peter Zijlstra wrote: > > On Fri, May 23, 2014 at 05:53:05PM +0200, Vincent Guittot wrote: > >> @@ -6052,8 +6006,8 @@ static inline void update_sd_lb_stats(struct lb_env > >> *env, struct sd_lb_stats *sd > >>

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Vincent Guittot
On 29 May 2014 16:02, Peter Zijlstra wrote: > On Fri, May 23, 2014 at 05:53:05PM +0200, Vincent Guittot wrote: >> @@ -6052,8 +6006,8 @@ static inline void update_sd_lb_stats(struct lb_env >> *env, struct sd_lb_stats *sd >>* with a large weight task outweighs the tasks on the syste

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Vincent Guittot
On 29 May 2014 15:55, Peter Zijlstra wrote: > On Fri, May 23, 2014 at 05:53:05PM +0200, 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 capacity is >> SCHED_POWER_SCALE. >> We can now

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Peter Zijlstra
On Fri, May 23, 2014 at 05:53:05PM +0200, Vincent Guittot wrote: > @@ -6052,8 +6006,8 @@ static inline void update_sd_lb_stats(struct lb_env > *env, struct sd_lb_stats *sd >* with a large weight task outweighs the tasks on the system). >*/ > if (prefer

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Peter Zijlstra
On Fri, May 23, 2014 at 05:53:05PM +0200, 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 capacity is > SCHED_POWER_SCALE. > We can now have a better idea of the utilization of a group f

[PATCH v2 11/11] sched: replace capacity by activity

2014-05-23 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 capacity is SCHED_POWER_SCALE. We can now have a better idea of the utilization of a group fo CPUs thanks to group_actitvity and deduct how many capacity is still av