Skip to content

RFC Introduce housekeeping subsystem

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9housekeeping: Move housekeeping related code to its own filedrivers/net/ethernet/tile/tilegx.c include/linux/housekeeping.h include/linux/tick.h +9 more+97 -560 replies
2/9watchdog: Use housekeeping_cpumask() instead of ad-hoc versionkernel/watchdog.c+3 -80 replies
3/9housekeeping: Provide a dynamic off-case to housekeeping_any_cpu()include/linux/housekeeping.h+8 -130 replies
4/9housekeeping: Make housekeeping cpumask privateinclude/linux/housekeeping.h kernel/housekeeping.c+42 -220 replies
5/9housekeeping: Use its own static keyinclude/linux/housekeeping.h kernel/housekeeping.c+11 -60 replies
6/9housekeeping: Rename is_housekeeping_cpu to housekeeping_cpuinclude/linux/housekeeping.h kernel/sched/core.c kernel/sched/fair.c+5 -50 replies
7/9housekeeping: Use own boot option, independant from nohzinclude/linux/housekeeping.h init/main.c kernel/housekeeping.c+10 -1614 replies
8/9housekeeping: Move it under own config, independant from NO_HZinclude/linux/housekeeping.h init/Kconfig kernel/Makefile+10 -40 replies
9/9workqueue: Affine unbound workqueues to housekeeping cpumaskkernel/workqueue.c+2 -10 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChris Metcalf
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

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

Read the v1 thread

Cover letter [RFC PATCH 0/9] Introduce housekeeping subsystem

I'm leaving for two weeks so this is food for thoughts in the meantime :)

We have a design issue with nohz_full: it drives the isolation features through the *housekeeping*() functions: kthreads, unpinned timers, watchdog, ...

But things should work the other way around because the tick is just an isolation feature among others.

So we need a housekeeping subsystem to drive all these isolation features, including nohz full in a later iteration. For now this is a basic draft. In the long run this subsystem should also drive the tick offloading (remove residual 1Hz) and all unbound kthreads.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
nohz/0hz

HEAD: 68e3af1de5db228bf6c2a5e721bce59a02cfc4e1

Thanks,
Frederic
---

Frederic Weisbecker (9):
housekeeping: Move housekeeping related code to its own file
watchdog: Use housekeeping_cpumask() instead of ad-hoc version
housekeeping: Provide a dynamic off-case to housekeeping_any_cpu()
housekeeping: Make housekeeping cpumask private
housekeeping: Use its own static key
housekeeping: Rename is_housekeeping_cpu to housekeeping_cpu
housekeeping: Use own boot option, independant from nohz
housekeeping: Move it under own config, independant from NO_HZ
workqueue: Affine unbound workqueues to housekeeping cpumask

 drivers/net/ethernet/tile/tilegx.c |  2 +-
 include/linux/housekeeping.h       | 39 +++++++++++++++++++++++
 include/linux/tick.h               | 37 ----------------------
 init/Kconfig                       |  6 ++++
 kernel/Makefile                    |  1 +
 kernel/housekeeping.c              | 65 ++++++++++++++++++++++++++++++++++++++
 kernel/rcu/tree_plugin.h           |  1 +
 kernel/rcu/update.c                |  1 +
 kernel/sched/core.c                |  7 ++--
 kernel/sched/fair.c                |  3 +-
 kernel/time/tick-sched.c           | 18 -----------
 kernel/watchdog.c                  | 12 +++----
 kernel/workqueue.c                 |  3 +-
 13 files changed, 126 insertions(+), 69 deletions(-)