[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158279477043.28353.9447896028790075438.tip-bot2@tip-bot2>
Date: Thu, 27 Feb 2020 09:12:50 -0000
From: "tip-bot2 for Vincent Guittot" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Vincent Guittot <vincent.guittot@...aro.org>,
Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Mel Gorman <mgorman@...hsingularity.net>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: sched/urgent] sched/fair: Fix statistics for find_idlest_group()
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: 289de35984815576793f579ec27248609e75976e
Gitweb: https://git.kernel.org/tip/289de35984815576793f579ec27248609e75976e
Author: Vincent Guittot <vincent.guittot@...aro.org>
AuthorDate: Tue, 18 Feb 2020 15:45:34 +01:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Thu, 27 Feb 2020 10:08:27 +01:00
sched/fair: Fix statistics for find_idlest_group()
sgs->group_weight is not set while gathering statistics in
update_sg_wakeup_stats(). This means that a group can be classified as
fully busy with 0 running tasks if utilization is high enough.
This path is mainly used for fork and exec.
Fixes: 57abff067a08 ("sched/fair: Rework find_idlest_group()")
Signed-off-by: Vincent Guittot <vincent.guittot@...aro.org>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Acked-by: Mel Gorman <mgorman@...hsingularity.net>
Link: https://lore.kernel.org/r/20200218144534.4564-1-vincent.guittot@linaro.org
---
kernel/sched/fair.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 3c8a379..c1217bf 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -8337,6 +8337,8 @@ static inline void update_sg_wakeup_stats(struct sched_domain *sd,
sgs->group_capacity = group->sgc->capacity;
+ sgs->group_weight = group->group_weight;
+
sgs->group_type = group_classify(sd->imbalance_pct, group, sgs);
/*
Powered by blists - more mailing lists