diff options
| author | Peter Zijlstra <[email protected]> | 2017-05-12 12:16:30 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-09-29 17:35:16 +0000 |
| commit | f207934fb79d1af1de1a62b09d56a3a1914172c4 (patch) | |
| tree | a1068ceb835ec41fd0004f428c2db25496c5c261 /fs/proc/array.c | |
| parent | sched/fair: Implement synchonous PELT detach on load-balance migrate (diff) | |
| download | kernel-f207934fb79d1af1de1a62b09d56a3a1914172c4.tar.gz kernel-f207934fb79d1af1de1a62b09d56a3a1914172c4.zip | |
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 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
