diff options
author | Paul Turner <[email protected]> | 2010-11-15 15:47:04 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-11-18 13:27:48 +0100 |
commit | e33078baa4d30ad1d0e46d1f62b9e5a63a3e6ee3 (patch) | |
tree | 13d1a075c9cd41ce666cf21b0b209bd3d121f566 /tools/perf/scripts/python/sched-migration.py | |
parent | f0d7442a5924a802b66eef79b3708f77297bfb35 (diff) |
sched: Fix update_cfs_load() synchronization
Using cfs_rq->nr_running is not sufficient to synchronize update_cfs_load with
the put path since nr_running accounting occurs at deactivation.
It's also not safe to make the removal decision based on load_avg as this fails
with both high periods and low shares. Resolve this by clipping history after
4 periods without activity.
Note: the above will always occur from update_shares() since in the
last-task-sleep-case that task will still be cfs_rq->curr when update_cfs_load
is called.
Signed-off-by: Paul Turner <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions