From 28f67e5a50d7c1bfc41cd7eb0f940f5daaa347c2 Mon Sep 17 00:00:00 2001 From: Joonwoo Park Date: Fri, 14 Aug 2015 14:18:15 -0700 Subject: [PATCH] sched: set HMP scheduler's default initial task load to 100% Set init_task_load to 100% to allow new tasks to wake up on the best performance CPUs. Change-Id: Ie762a3f629db554fb5cfa8c1d7b8b2391badf573 Signed-off-by: Joonwoo Park --- Documentation/scheduler/sched-hmp.txt | 2 +- kernel/sched/fair.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/scheduler/sched-hmp.txt b/Documentation/scheduler/sched-hmp.txt index 5e72fdd18fc1..a3d5ece0b38e 100644 --- a/Documentation/scheduler/sched-hmp.txt +++ b/Documentation/scheduler/sched-hmp.txt @@ -1101,7 +1101,7 @@ tasks - they may be woken up on busy CPUs. Appears at: /proc/sys/kernel/sched_init_task_load -Default value: 15 +Default value: 100 This tunable is a percentage. When a task is first created it has no history, so the task load tracking mechanism cannot determine a diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fc0ff96a1fd8..a9f3199bdcf6 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2675,7 +2675,7 @@ static inline void decay_scaled_stat(struct sched_avg *sa, u64 periods); /* Initial task load. Newly created tasks are assigned this load. */ unsigned int __read_mostly sched_init_task_load_pelt; unsigned int __read_mostly sched_init_task_load_windows; -unsigned int __read_mostly sysctl_sched_init_task_load_pct = 15; +unsigned int __read_mostly sysctl_sched_init_task_load_pct = 100; static inline unsigned int task_load(struct task_struct *p) {