Skip to content

Harden preferred CPUs management

Yury Norov driver-core linux-doc linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cpumask: add reset_preferred_cpumask() helperdrivers/virt/steal_governor.c include/linux/cpumask.h+18 -110 replies
2/7sched: restore preferred CPUs when hotplug removes the last onekernel/sched/core.c+8 -01 reply
3/7virt: steal_governor: remove the minimum elapsed-time checkdrivers/virt/steal_governor.c+0 -60 replies
4/7virt: steal_governor: serialize sampling against CPU hotplugdrivers/virt/steal_governor.c include/linux/cpumask.h lib/cpumask.c+28 -51 reply
5/7virt: steal_governor: warn on unexpected preferred mask statesdrivers/virt/steal_governor.c+6 -30 replies
6/7virt: steal_governor: restart sampling immediately after CPU hotplugdrivers/virt/steal_governor.c+34 -32 replies
7/7cpu: make preferred CPU policy writers mutually exclusiveDocumentation/scheduler/sched-paravirt.rst drivers/virt/steal_governor.c include/linux/cpumask.h +1 more+79 -61 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Harden preferred CPUs management

On top of tip sched/core.

This series hardens preferred CPU mask management against CPU hotplug and prevents competing governors from overriding each other’s selections.

This is partially a resend of [1], excluding the write access, and partially the new material.

The write access to the preferred cpumask is a subject of the ongoing discussion. I'll submit it as a follow up shortly.

[1] https://lore.kernel.org/all/[email protected]/

Yury Norov (7):
cpumask: add reset_preferred_cpumask() helper
sched: restore preferred CPUs when hotplug removes the last one
virt: steal_governor: remove the minimum elapsed-time check
virt: steal_governor: serialize sampling against CPU hotplug
virt: steal_governor: warn on unexpected preferred mask states
virt: steal_governor: restart sampling immediately after CPU hotplug
cpu: make preferred CPU policy writers mutually exclusive

 Documentation/scheduler/sched-paravirt.rst |  2 +-
 drivers/virt/steal_governor.c              | 82 +++++++++++++++-------
 include/linux/cpumask.h                    | 30 ++++++++
 kernel/sched/core.c                        |  8 +++
 lib/cpumask.c                              | 67 ++++++++++++++++++
 5 files changed, 164 insertions(+), 25 deletions(-)
Signature · 1 line
2.53.0