[PATCH -v2 14/18] sched/fair: Synchonous PELT detach on load-balance migrate

2017-09-01 Thread Peter Zijlstra
Vincent wondered why his self migrating task had a roughly 50% dip in load_avg when landing on the new CPU. This is because we uncondionally take the asynchronous detatch_entity route, which can lead to the attach on the new CPU still seeing the old CPU's contribution to tg->load_avg, effectively

[PATCH -v2 14/18] sched/fair: Synchonous PELT detach on load-balance migrate

2017-09-01 Thread Peter Zijlstra
Vincent wondered why his self migrating task had a roughly 50% dip in load_avg when landing on the new CPU. This is because we uncondionally take the asynchronous detatch_entity route, which can lead to the attach on the new CPU still seeing the old CPU's contribution to tg->load_avg, effectively