diff options
| author | Peter Zijlstra <[email protected]> | 2017-05-11 18:16:06 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-09-29 19:35:11 +0200 |
| commit | 3d4b60d3e3dde6ea24e439000eb3b71078da81f1 (patch) | |
| tree | 98b441ccd2236ce2a8efebeb8bb961f2d45730ec /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | cef27403cbe98ebda0a32d43128dd60c309eb966 (diff) | |
sched/fair: Cure calc_cfs_shares() vs. reweight_entity()
Vincent reported that when running in a cgroup, his root
cfs_rq->avg.load_avg dropped to 0 on task idle.
This is because reweight_entity() will now immediately propagate the
weight change of the group entity to its cfs_rq, and as it happens,
our approxmation (5) for calc_cfs_shares() results in 0 when the group
is idle.
Avoid this by using the correct (3) as a lower bound on (5). This way
the empty cgroup will slowly decay instead of instantly drop to 0.
Reported-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions