Skip to content

sched: EAS changes for EM complexity and sysctl

Shrikanth Hegde linux-doc lkml 2 versions – Applied

Status from this message: I've applied this patch to tip:sched/core, for a v6.7 merge, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 2 repliesApplied
  2. v52 patches 4 repliesSuperseded

Changes in v6 from the cover letter

Valentin pointed out that sd_asym_cpucapacity is under rcu and to avoid writing to sysctl if EAS is not possible. Did these two.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/2sched/topology: Remove EM_MAX_COMPLEXITY limitDocumentation/scheduler/sched-energy.rst kernel/sched/topology.c+6 -621 reply
2/2sched/topology: change behaviour of sysctl sched_energy_aware based on the platformDocumentation/admin-guide/sysctl/kernel.rst kernel/sched/topology.c+76 -391 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPierre GondoisLukasz LubaDietmar EggemannValentin Schneider
1/2R-b R-b
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/2] sched: EAS changes for EM complexity and sysctl

In Brief:
[PATCH v6 1/2] sched/topology: Remove EM_MAX_COMPLEXITY limit Since the EAS complexity was greatly reduced, bigger platforms can handle EAS. To reflect this improvement, remove the EAS complexity check.

[PATCH v6 2/2] sched/topology: change behaviour of sysctl sched_energy_aware based on the platform
Depending on the platform sysctl will either enable/disable EAS and NOP in case if EAS is not supported.

Patchset contains these two patches. Second patch depends on the first patch to be applied first.

v5->v6:
Valentin pointed out that sd_asym_cpucapacity is under rcu and to avoid writing to sysctl if EAS is not possible. Did these two.
v4->v5:
sched_is_eas_possible missed handling of case when EM complexity was high. Dietmar suggested that there was work done already which removes these checks. Since it makes sched_is_eas_possible cleaner, picked up that
patch along with v4 and made it as a patchset.
Instead of using first CPU in cpu_active_mask, doing a simple loop across all CPU in cpu_active_mask to check if there is any asymmetric CPU capacities since it was breaking EAS capabilities over CPUSET islands. v3->v4:
valentin suggested it would be better to consider simpler approach that
was mentioned in v2. It is a standard approach to keep the knob visible
but change how read and write are handled. Did that and Refactored the
code to use a common function in build_perf_domains and in sysctl handler. v2->v3:
Chen Yu and Pierre Gondois both pointed out that if platform becomes
capable of EAS later, this patch was not allowing that to happen.
Addressed that by using a variable to indicate the sysctl change
and re-worded the commit message with desired behaviour,
v1->v2:
Chen Yu had pointed out that this will not destroy the perf domains on architectures where EAS is supported by changing the sysctl.
[v1] Link: https://lore.kernel.org/lkml/[email protected]/
[v2] Link: https://lore.kernel.org/lkml/[email protected]/
[v3] Link: https://lore.kernel.org/lkml/[email protected]/
[v4] Link: https://lore.kernel.org/lkml/[email protected]/
[v5] Link: https://lore.kernel.org/lkml/[email protected]/

Pierre Gondois (1):
sched/topology: Remove EM_MAX_COMPLEXITY limit

Shrikanth Hegde (1):
sched/topology: change behaviour of sysctl sched_energy_aware based on
the platform

 Documentation/admin-guide/sysctl/kernel.rst |   3 +-
 Documentation/scheduler/sched-energy.rst    |  29 +---
 kernel/sched/topology.c                     | 151 ++++++++++----------
 3 files changed, 82 insertions(+), 101 deletions(-)

--
2.31.1