Skip to content

Add allowed CPU capacity knowledge to EAS

Lukasz Luba linux-pm lkml 4 versions – Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 7 repliesApplied
  2. v33 patches 6 repliesSuperseded
  3. v22 patches 17 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- removed local variable and improved description in patch 2/3
- added Reviewed-by from Vincent for patch 2/3
- added Acked-by from Viresh for patch 1/3
v3 [3]:
- switched to 'raw' per-cpu thermal pressure instead of thermal pressure geometric series signal, since it more suited for purpose of this use case: predicting SchedUtil frequency (Vincent, Dietmar)
- added more comment in the patch 2/3 header for use case when thermal capping might be applied even the CPUs are not over-utilized (Dietmar)
- added ACK tag from Rafael for SchedUtil part
- added a fix patch for offline CPUs in cpufreq_cooling and per-cpu thermal_pressure missing update
v2 [2]:
- clamp the returned value from effective_cpu_util() and avoid irq util scaling issues (Quentin)
v1 is available at [1]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3thermal: cpufreq_cooling: Update also offline CPUs per-cpu thermal_pressuredrivers/thermal/cpufreq_cooling.c+1 -10 replies
2/3sched/fair: Take thermal pressure into account while estimating energykernel/sched/fair.c+8 -36 replies
3/3sched/cpufreq: Consider reduced CPU capacity in energy calculationinclude/linux/energy_model.h include/linux/sched/cpufreq.h kernel/sched/cpufreq_schedutil.c +1 more+16 -50 replies

Reviews trailers per patch

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

PatchViresh KumarVincent GuittotRafael J. WysockiDietmar Eggemann
1/3A-b
2/3R-b R-b
3/3A-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 v4 thread

Cover letter [PATCH v4 0/3] Add allowed CPU capacity knowledge to EAS

Hi all,

The patch set v4 aims to add knowledge about reduced CPU capacity into the Energy Model (EM) and Energy Aware Scheduler (EAS). Currently the issue is that SchedUtil CPU frequency and EM frequency are not aligned, when there is a CPU thermal capping. This causes an estimation error. This patch set provides the information about allowed CPU capacity into the EM (thanks to thermal pressure information). This improves the energy estimation. More info about this mechanism can be found in the patches description.

Changelog:
v4:
- removed local variable and improved description in patch 2/3
- added Reviewed-by from Vincent for patch 2/3
- added Acked-by from Viresh for patch 1/3
v3 [3]:
- switched to 'raw' per-cpu thermal pressure instead of thermal pressure geometric series signal, since it more suited for purpose of this use case: predicting SchedUtil frequency (Vincent, Dietmar)
- added more comment in the patch 2/3 header for use case when thermal capping might be applied even the CPUs are not over-utilized (Dietmar)
- added ACK tag from Rafael for SchedUtil part
- added a fix patch for offline CPUs in cpufreq_cooling and per-cpu thermal_pressure missing update
v2 [2]:
- clamp the returned value from effective_cpu_util() and avoid irq util scaling issues (Quentin)
v1 is available at [1]

Regards,
Lukasz

[1] https://lore.kernel.org/linux-pm/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/lkml/[email protected]/

Lukasz Luba (3):
thermal: cpufreq_cooling: Update also offline CPUs per-cpu
thermal_pressure
sched/fair: Take thermal pressure into account while estimating energy sched/cpufreq: Consider reduced CPU capacity in energy calculation

 drivers/thermal/cpufreq_cooling.c |  2 +-
 include/linux/energy_model.h      | 16 +++++++++++++---
 include/linux/sched/cpufreq.h     |  2 +-
 kernel/sched/cpufreq_schedutil.c  |  1 +
 kernel/sched/fair.c               | 13 +++++++++----
 5 files changed, 25 insertions(+), 9 deletions(-)
Signature · 1 line
2.17.1