EXPERIMENTAL: sched/fair: change load balance utilization checks
authorLukasz Luba <l.luba@partner.samsung.com>
Mon, 3 Sep 2018 16:13:49 +0000 (18:13 +0200)
committerLukasz Luba <l.luba@partner.samsung.com>
Wed, 26 Sep 2018 10:34:35 +0000 (12:34 +0200)
Patch is less conservative in load balance target switch decision.
The workload is more spreaded and there is no idle cpu when
system is fully loaded.

Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
kernel/sched/fair.c

index 815fab24aa4c23d9c1ec5bae3b1e3c7d77582253..cdd3fc19b8f8b8a73516a58a2e551b72e7b16313 100644 (file)
@@ -8735,11 +8735,7 @@ static inline int need_park_into_spare_capacity(struct lb_env *env)
                                                cpu_util(env->src_cpu) / 2);
        int ret;
 
-       if ((capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) &&
-                               env->src_rq->cfs.h_nr_running == 1 &&
-                               cpu_overutilized(env->src_cpu) &&
-                               !cpu_overutilized(env->dst_cpu) &&
-                               (fits_in || check_cpu_lite_util(env->dst_cpu))) {
+       if (fits_in || check_cpu_lite_util(env->dst_cpu)) {
                ret = 1;
        } else {
                ret = 0;