[PATCH RFC 0/3] Expose writable interface for preferred CPUs
From: Yury Norov
Date: Mon Nov 16 2026 - 21:25:56 EST
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/20261113184257.621707-1-ynorov@xxxxxxxxxx/
[2] https://lore.kernel.org/all/20261101192203.6979-1-ynorov@xxxxxxxxxx/
[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
--
2.53.0