Skip to content

cpufreq: schedutil: fixes for flags updates

Patrick Bellasi linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 74 repliesIn review
  2. v26 patches 21 repliesSuperseded
  3. v16 patches 23 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpufreq: schedutil: reset sg_cpus's flags at IDLE enterinclude/linux/sched/cpufreq.h kernel/sched/cpufreq_schedutil.c kernel/sched/idle_task.c+12 -017 replies
2/6cpufreq: schedutil: ensure max frequency while running RT/DL taskskernel/sched/cpufreq_schedutil.c+27 -75 replies
3/6cpufreq: schedutil: update CFS util only if usedkernel/sched/cpufreq_schedutil.c+1 -25 replies
4/6sched/rt: fast switch to maximum frequency when RT tasks are scheduledkernel/sched/rt.c+12 -34 replies
5/6cpufreq: schedutil: relax rate-limiting while running RT/DL taskskernel/sched/cpufreq_schedutil.c+12 -73 replies
6/6cpufreq: schedutil: ignore sugov kthreadskernel/sched/cpufreq_schedutil.c+8 -06 replies

Reviews trailers per patch

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

PatchDietmar EggemannJuri Lelli
1/6R-b
2/6R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates

This is a re-spin of a previous posting [1], rebased on v4.15-rc1.

A detailed description of the series, as well as experimental results, is available in the cover letter of the previous posting. Here is a resume of the main results:

- reduces energy consumption by ~50% by ensuring that a small task is always running at the minimum OPP even when the sugov's RT kthread is used to change frequencies in the same cluster

- increase from 4% to 98% the chances for a RT task to complete its activations while running at the max OPP.

- The sequence of tracing events reported in a trace is much more deterministic and matching the expected system behaviors. For example, as soon as a RT task wakes up we ask for an OPP switch to max frequency.

A detailed report for these results is available here [2].

According to the discussion in the previous posting, one patch:

cpufreq: schedutil: ignore the sugov kthread for frequencies selections

was considered the more controversial.
That's why in this posting I'm still proposing that patch, since it still makes sense to me, but I've moved it at the end of the series, after the less controversial ones.

Cheers Patrick

.:: References
==============

[1] https://lkml.org/lkml/2017/7/4/495
[2] https://gist.github.com/derkling/0cd7210e4fa6f2ec3558073006e5ad70

Patrick Bellasi (6):
cpufreq: schedutil: reset sg_cpus's flags at IDLE enter
cpufreq: schedutil: ensure max frequency while running RT/DL tasks
cpufreq: schedutil: update CFS util only if used
sched/rt: fast switch to maximum frequency when RT tasks are scheduled
cpufreq: schedutil: relax rate-limiting while running RT/DL tasks
cpufreq: schedutil: ignore sugov kthreads

 include/linux/sched/cpufreq.h    |  1 +
 kernel/sched/cpufreq_schedutil.c | 61 ++++++++++++++++++++++++++++++++--------
 kernel/sched/idle_task.c         |  4 +++
 kernel/sched/rt.c                | 15 ++++++++--
 4 files changed, 67 insertions(+), 14 deletions(-)
Signature · 1 line
2.14.1