Skip to content

RFC Expose writable interface for preferred CPUs

Yury Norov driver-core linux-doc linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cpu: add sysfs control for preferred CPUSDocumentation/ABI/testing/sysfs-devices-system-cpu Documentation/ABI/testing/sysfs-devices-system-cpu-preferred Documentation/scheduler/sched-paravirt.rst +2 more+151 -60 replies
2/3sched: decouple preferred CPU policies from steal-time accountingDocumentation/ABI/testing/sysfs-devices-system-cpu kernel/Kconfig.preempt+5 -80 replies
3/3docs: sched: describe thermal control with preferred CPUsDocumentation/scheduler/index.rst Documentation/scheduler/preferred-cpu-thermal.rst+95 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] Expose writable interface for preferred CPUs

On top of tip sched/core + [1].

The preferred CPU mask currently lets the steal governor reduce vCPU demand when physical CPUs are contended.

This series adds a writable sysfs interface, allowing userspace governors such as thermald to encourage CPU idling in response to external pressure.

Patches #1 and #2 are partial resends of [2]. Patch #3 adds a thermald example.

The complete series is available at [3].

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://github.com/norov/linux/tree/sysfs-preferred-cpumask

Request feedback on preferred CPUs as a thermal-control mechanism and its relationship to existing cooling methods.

Yury Norov (3):
cpu: add sysfs control for preferred CPUS
sched: decouple preferred CPU policies from steal-time accounting
docs: sched: describe thermal control with preferred CPUs

 .../ABI/testing/sysfs-devices-system-cpu      | 14 ++-
 .../sysfs-devices-system-cpu-preferred        | 42 +++++++++
 Documentation/scheduler/index.rst             |  1 +
 .../scheduler/preferred-cpu-thermal.rst       | 94 +++++++++++++++++++
 Documentation/scheduler/sched-paravirt.rst    | 20 +++-
 drivers/base/cpu.c                            | 76 +++++++++++++++
 kernel/Kconfig.preempt                        | 18 +++-
 7 files changed, 251 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-system-cpu-preferred
 create mode 100644 Documentation/scheduler/preferred-cpu-thermal.rst
Signature · 1 line
2.53.0