[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210726102247.21437-1-mgorman@techsingularity.net>
Date: Mon, 26 Jul 2021 11:22:38 +0100
From: Mel Gorman <mgorman@...hsingularity.net>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Vincent Guittot <vincent.guittot@...aro.org>,
Valentin Schneider <valentin.schneider@....com>,
Aubrey Li <aubrey.li@...ux.intel.com>,
Mel Gorman <mgorman@...hsingularity.net>
Subject: [RFC PATCH 0/9] Modify and/or delete SIS_PROP
When scanning for an idle CPU, SIS_PROP limits the scan based on an average
estimated idle time for a domain but it's a somewhat inconsistent and
fuzzy heuristic. Idle time of a CPU does not necessarily correlate with
idle time of a domain, scanning for an idle core is not throttled at all
and successful scans are not accounted for.
The first three patches are accounting patches to put some numbers on the
scan efficiency. Ultimately, they may not be merged but they are useful
for determining if a patch works as advertised.
Patch 4 improves recent_used_cpu to reduce the amount of scanning that is
done in absolute terms.
Patch 5 notes that the target CPU has already been scanned with
select_idle_cpu starts and therefore should be skipped.
Patches 6-9 replace SIS_PROP with a scheme based on partially tracking
idle CPUs, first proposed by Aubrey Li and modified by this series.
It is likely to be the most controversial, not necessary a win, but the
possibility was discussed. The series is likely to be split with one
series being patches 4-5 and a second being patches 6-9.
The series is not a univeral win or loss but there are some improvements
and overall, scan efficiencies are improved. A limiting factor in the
evaluation is that tracking the statistics is expensive on its own and
all tests were run with schedstat enabled.
Depending on how this RFC is received, testing would be done without
schedstat and the series may be split.
include/linux/sched/topology.h | 13 +++
kernel/sched/core.c | 7 +-
kernel/sched/debug.c | 8 ++
kernel/sched/fair.c | 149 ++++++++++++++++++---------------
kernel/sched/features.h | 5 --
kernel/sched/idle.c | 5 ++
kernel/sched/sched.h | 17 +++-
kernel/sched/stats.c | 10 ++-
kernel/sched/topology.c | 3 +-
9 files changed, 133 insertions(+), 84 deletions(-)
--
2.26.2
Powered by blists - more mailing lists