diff options
author | Peter Zijlstra <[email protected]> | 2017-05-12 14:16:30 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-09-29 19:35:16 +0200 |
commit | f207934fb79d1af1de1a62b09d56a3a1914172c4 (patch) | |
tree | a1068ceb835ec41fd0004f428c2db25496c5c261 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 144d8487bc6e9b741895709cb46d4e19b748a725 (diff) |
sched/fair: Align PELT windows between cfs_rq and its se
The PELT _sum values are a saw-tooth function, dropping on the decay
edge and then growing back up again during the window.
When these window-edges are not aligned between cfs_rq and se, we can
have the situation where, for example, on dequeue, the se decays
first.
Its _sum values will be small(er), while the cfs_rq _sum values will
still be on their way up. Because of this, the subtraction:
cfs_rq->avg._sum -= se->avg._sum will result in a positive value. This
will then, once the cfs_rq reaches an edge, translate into its _avg
value jumping up.
This is especially visible with the runnable_load bits, since they get
added/subtracted a lot.
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/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions