android_kernel_samsung_a7y1.../kernel/sched
Valentin Schneider fcdf07ce91 sched/fair: Don't increase sd->balance_interval on newidle balance
[ Upstream commit 3f130a37c442d5c4d66531b240ebe9abfef426b5 ]

When load_balance() fails to move some load because of task affinity,
we end up increasing sd->balance_interval to delay the next periodic
balance in the hopes that next time we look, that annoying pinned
task(s) will be gone.

However, idle_balance() pays no attention to sd->balance_interval, yet
it will still lead to an increase in balance_interval in case of
pinned tasks.

If we're going through several newidle balances (e.g. we have a
periodic task), this can lead to a huge increase of the
balance_interval in a very small amount of time.

To prevent that, don't increase the balance interval when going
through a newidle balance.

This is a similar approach to what is done in commit 58b26c4c0257
("sched: Increment cache_nice_tries only on periodic lb"), where we
disregard newidle balance and rely on periodic balance for more stable
results.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Dietmar.Eggemann@arm.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: patrick.bellasi@arm.com
Cc: vincent.guittot@linaro.org
Link: http://lkml.kernel.org/r/1537974727-30788-2-git-send-email-valentin.schneider@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:36:11 +02:00
..
auto_group.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
auto_group.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
completion.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c sched/core: Fix CPU controller for !RT_GROUP_SCHED 2020-04-07 07:37:59 +02:00
cpuacct.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpuacct.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpudeadline.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpudeadline.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpufreq_schedutil.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpufreq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpupri.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpupri.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cputime.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
deadline.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
energy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fair.c sched/fair: Don't increase sd->balance_interval on newidle balance 2020-04-07 12:36:11 +02:00
features.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
idle_task.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
idle.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
loadavg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sched.h sched: Add sched_smt_active() 2020-04-06 16:51:01 +02:00
stats.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stats.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stop_task.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tune.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tune.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wait.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
walt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
walt.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30