Skip to content

timers/migration: Prioritize lower capacity CPUs as migrators

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6timers/migration: Revert per CPU capacity hierarchyinclude/trace/events/timer_migration.h kernel/time/timer_migration.c kernel/time/timer_migration.h +1 more+87 -2460 replies
2/6timers/migration: Defer initialization after capacity topology is setupkernel/time/timer_migration.c+67 -250 replies
3/6sched/topology: Account asym capacities numberinclude/linux/sched/topology.h kernel/sched/topology.c+26 -00 replies
4/6timers/migration: Group CPUs per capacityinclude/trace/events/timer_migration.h kernel/time/timer_migration.c kernel/time/timer_migration.h+103 -670 replies
5/6timers/migration: Prefer lower capacity groups as migratorsinclude/linux/sched/topology.h kernel/sched/topology.c kernel/time/timer_migration.c +2 more+62 -180 replies
6/6scripts/timer_migration_tree.py: Dump mask of each groupscripts/timer_migration_tree.py+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFT][DONOTMERGE][PATCH 0/6] timers/migration: Prioritize lower capacity CPUs as migrators

Hi,

It has been reported that the timer migration tree wasn't too helpful on asymetric systems, with timers migrating too often to big capacity CPUs, waking them more frequently from deep idle state.

Splitting the tree into per CPU capacity hierarchies doesn't seem to improve the situation.

So here is another proposal: gather CPUs belonging to the same capacity under the same groups and finally join those capacity groups under a common root. Exactly in the same way it is done for NUMA systems.

And then always pick up the lowest capacity non-idle CPU group as the migrator with the hope that handling timers will keep lower capacity CPUs busy enough to increase their chances to become global idle migrators.

Please give it a try but make sure you have fewer than 9 capacities on your system. Handling more will require a bit more throughts. Let's see first if this is the right way to go.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/migration-capacity

HEAD: 28f02a6747ac4343f3596aaa3b749dea95577478
Thanks,
Frederic
---

Frederic Weisbecker (6):
timers/migration: Revert per CPU capacity hierarchy timers/migration: Defer initialization after capacity topology is setup sched/topology: Account asym capacities number timers/migration: Group CPUs per capacity
timers/migration: Prefer lower capacity groups as migrators scripts/timer_migration_tree.py: Dump mask of each group

 include/linux/sched/topology.h         |   3 +
 include/trace/events/timer_migration.h |  48 ++--
 kernel/sched/topology.c                |  44 ++++
 kernel/time/timer_migration.c          | 393 +++++++++++++++------------------
 kernel/time/timer_migration.h          |  33 +--
 scripts/timer_migration_tree.py        |  65 +++---
 6 files changed, 288 insertions(+), 298 deletions(-)