Provide runtime switching of offloaded CPUs
Get series with b4
b4 am 20210106013950.GA14663@paulmck-ThinkPad-P72Versions newest first
- v1 Latest21 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | rcu/nocb: Turn enabled/offload states into a common flaginclude/ kernel/ kernel/ | +28 | 0 replies | |
| 2/21 | rcu/nocb: Provide basic callback offloading state machine bitsinclude/ kernel/ kernel/ +1 more | +128 | 0 replies | |
| 3/21 | rcu/nocb: Always init segcblist on CPU upkernel/ | +9 | 0 replies | |
| 4/21 | rcu/nocb: De-offloading CB kthreadinclude/ kernel/ kernel/ +2 more | +123 | 0 replies | |
| 5/21 | rcu/nocb: Don't deoffload an offline CPU with pending workkernel/ | +9 | 0 replies | |
| 6/21 | rcu/nocb: De-offloading GP kthreadkernel/ | +51 | 0 replies | |
| 7/21 | rcu/nocb: Re-offload supportinclude/ kernel/ | +138 | 0 replies | |
| 8/21 | rcu/nocb: Shutdown nocb timer on de-offloadingkernel/ kernel/ | +12 | 0 replies | |
| 9/21 | rcu/nocb: Flush bypass before setting SEGCBLIST_SOFTIRQ_ONLYkernel/ | +10 | 0 replies | |
| 10/21 | rcu/nocb: Set SEGCBLIST_SOFTIRQ_ONLY at the very last stage of de-offloadingkernel/ | +8 | 0 replies | |
| 11/21 | rcu/nocb: Only cond_resched() from actual offloaded batch processingkernel/ | +1 | 0 replies | |
| 12/21 | rcu/nocb: Process batch locally as long as offloading isn't completekernel/ kernel/ | +14 | 0 replies | |
| 13/21 | rcu/nocb: Locally accelerate callbacks as long as offloading isn't completekernel/ | +3 | 0 replies | |
| 14/21 | cpu/hotplug: Add lockdep_is_cpus_held()include/ kernel/ | +9 | 0 replies | |
| 15/21 | timer: Add timer_curr_running()include/ kernel/ | +15 | 0 replies | |
| 16/21 | rcutorture: Test runtime toggling of CPUs' callback offloadingDocumentation/ kernel/ | +95 | 0 replies | |
| 17/21 | tools/rcutorture: Support nocb toggle in TREE01tools/ | +3 | 0 replies | |
| 18/21 | rcu/nocb: Add grace period and task state to show_rcu_nocb_state() outputkernel/ kernel/ | +43 | 0 replies | |
| 19/21 | rcu/nocb: Add nocb CB kthread list to show_rcu_nocb_state() outputkernel/ | +1 | 0 replies | |
| 20/21 | rcu/nocb: Code-style nits in callback-offloading togglingkernel/ kernel/ | +11 | 0 replies | |
| 21/21 | rcu: Do any deferred nocb wakeups at CPU offline timekernel/ | +3 | 0 replies |
Reviews trailers per patch
None of the 21 patches has a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH tip/core/rcu 0/21] Provide runtime switching of offloaded CPUs
Hello!
Currently, it is necessary to reboot to change a given CPU between invoking its own RCU callbacks via softirq and offloading callback invocation to an rcuo kthread. This series allows CPUs that were initially offloaded to be toggled back and forth at runtime, without requiring a reboot.
Note that you can boot with all CPUs offloaded, de-offload them as needed immediately after boot, and thereafter toggled back and forth as desired.
1. Turn enabled/offload states into a common flag, courtesy of
Frederic Weisbecker.
2. Provide basic callback offloading state machine bits, courtesy
of Frederic Weisbecker.
3. Always init segcblist on CPU up, courtesy of Frederic Weisbecker.
4. De-offloading CB kthread, courtesy of Frederic Weisbecker.
5. Don't deoffload an offline CPU with pending work, courtesy of
Frederic Weisbecker.
6. De-offloading GP kthread, courtesy of Frederic Weisbecker.
7. Re-offload support, courtesy of Frederic Weisbecker.
8. Shutdown nocb timer on de-offloading, courtesy of Frederic
Weisbecker.
9. Flush bypass before setting SEGCBLIST_SOFTIRQ_ONLY, courtesy of
Frederic Weisbecker.
10. Set SEGCBLIST_SOFTIRQ_ONLY at the very last stage of
de-offloading, courtesy of Frederic Weisbecker.
11. Only cond_resched() from actual offloaded batch processing,
courtesy of Frederic Weisbecker.
12. Process batch locally as long as offloading isn't complete,
courtesy of Frederic Weisbecker.
13. Locally accelerate callbacks as long as offloading isn't complete,
courtesy of Frederic Weisbecker.
14. Add lockdep_is_cpus_held(), courtesy of Frederic Weisbecker.
15. Add timer_curr_running(), courtesy of Frederic Weisbecker.
16. Test runtime toggling of CPUs' callback offloading.
17. Support nocb toggle in TREE01, courtesy of Frederic Weisbecker.
18. Add grace period and task state to show_rcu_nocb_state() output.
19. Add nocb CB kthread list to show_rcu_nocb_state() output.
20. Code-style nits in callback-offloading toggling.
21. Do any deferred nocb wakeups at CPU offline time.
Thanx, Paul
------------------------------------------------------------------------
Documentation/admin-guide/kernel-parameters.txt | 8 include/linux/cpu.h | 2 include/linux/rcu_segcblist.h | 121 +++ include/linux/rcupdate.h | 4 include/linux/timer.h | 2 kernel/cpu.c | 7 kernel/rcu/rcu_segcblist.c | 17 kernel/rcu/rcu_segcblist.h | 79 +- kernel/rcu/rcutorture.c | 90 ++ kernel/rcu/tree.c | 31 kernel/rcu/tree.h | 2 kernel/rcu/tree_plugin.h | 433 +++++++++++-- kernel/time/timer.c | 13 tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot | 4 14 files changed, 714 insertions(+), 99 deletions(-)