aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorVincent Guittot <[email protected]>2020-06-24 15:44:22 +0000
committerBorislav Petkov <[email protected]>2020-06-28 15:01:20 +0000
commite21cf43406a190adfcc4bfe592768066fb3aaa9b (patch)
treee5f7d137033c19c399fc285d5931a737f7be4f2f /scripts/gcc-plugins/sancov_plugin.c
parentsmp, irq_work: Continue smp_call_function*() and irq_work*() integration (diff)
downloadkernel-e21cf43406a190adfcc4bfe592768066fb3aaa9b.tar.gz
kernel-e21cf43406a190adfcc4bfe592768066fb3aaa9b.zip
sched/cfs: change initial value of runnable_avg
Some performance regression on reaim benchmark have been raised with commit 070f5e860ee2 ("sched/fair: Take into account runnable_avg to classify group") The problem comes from the init value of runnable_avg which is initialized with max value. This can be a problem if the newly forked task is finally a short task because the group of CPUs is wrongly set to overloaded and tasks are pulled less agressively. Set initial value of runnable_avg equals to util_avg to reflect that there is no waiting time so far. Fixes: 070f5e860ee2 ("sched/fair: Take into account runnable_avg to classify group") Reported-by: kernel test robot <[email protected]> Signed-off-by: Vincent Guittot <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions