Re: [RESEND PATCH 3/3 v5] sched: Remove task and group entity load_avg when they are dead

2014-10-22 Thread Peter Zijlstra
On Fri, Oct 10, 2014 at 10:21:57AM +0800, Yuyang Du wrote: > When task exits or group is destroyed, the entity's load_avg should be > removed from its parent cfs_rq's load_avg. Otherwise, it will take time > for the parent cfs_rq to decay the dead entity's load_avg to 0, which > is not desired.

Re: [RESEND PATCH 3/3 v5] sched: Remove task and group entity load_avg when they are dead

2014-10-22 Thread Peter Zijlstra
On Fri, Oct 10, 2014 at 10:21:57AM +0800, Yuyang Du wrote: When task exits or group is destroyed, the entity's load_avg should be removed from its parent cfs_rq's load_avg. Otherwise, it will take time for the parent cfs_rq to decay the dead entity's load_avg to 0, which is not desired.

[RESEND PATCH 3/3 v5] sched: Remove task and group entity load_avg when they are dead

2014-10-10 Thread Yuyang Du
When task exits or group is destroyed, the entity's load_avg should be removed from its parent cfs_rq's load_avg. Otherwise, it will take time for the parent cfs_rq to decay the dead entity's load_avg to 0, which is not desired. Signed-off-by: Yuyang Du --- kernel/sched/fair.c | 11

[RESEND PATCH 3/3 v5] sched: Remove task and group entity load_avg when they are dead

2014-10-10 Thread Yuyang Du
When task exits or group is destroyed, the entity's load_avg should be removed from its parent cfs_rq's load_avg. Otherwise, it will take time for the parent cfs_rq to decay the dead entity's load_avg to 0, which is not desired. Signed-off-by: Yuyang Du yuyang...@intel.com ---