RFC sched+mm: Track lazy active mm existence with hazard pointers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 RFC Latest4 patches 3 repliesIn review
- v2 RFC4 patches 20 repliesSuperseded
- v1 RFC4 patches 19 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | compiler.h: Introduce ptr_eq() to preserve address dependencyinclude/ | +63 | 0 replies | |
| 2/4 | Documentation: RCU: Refer to ptr_eq()Documentation/ | +33 | 0 replies | |
| 3/4 | hazptr: Implement Hazard Pointersinclude/ kernel/ kernel/ | +217 | 1 reply | |
| 4/4 | sched+mm: Use hazard pointers to track lazy active mm existenceDocumentation/ arch/ arch/ +7 more | +45 | 2 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Boqun Feng | Joel Fernandes (Google) | Paul E. McKenney | Alan Stern |
|---|---|---|---|---|
| 1/4 | R-b | R-b T-b | A-b | A-b |
| 2/4 | R-b | A-b | A-b | |
| 3/4 | ||||
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [RFC PATCH v3 0/4] sched+mm: Track lazy active mm existence with hazard pointers
[
I'm posting a v3 taking care of feedback from Peter Zijlstra and Paul E. McKenney in case it can be useful to try hazard pointers with other use-cases, or for further benchmarking of active mm tracking impact.
]
Hazard pointers appear to be a good fit for replacing refcount based lazy active mm tracking.
Highlight:
will-it-scale context_switch1_threads
nr threads (-t) speedup
1 -0.2%
2 +0.4%
3 +0.2%
6 +0.6%
12 +0.8%
24 +3%
48 +12%
96 +21%
192 +28% 384 +4%
768 -0.6%
This series applies on top of v6.11.1.
Mathieu Desnoyers (4):
compiler.h: Introduce ptr_eq() to preserve address dependency
Documentation: RCU: Refer to ptr_eq()
hazptr: Implement Hazard Pointers
sched+mm: Use hazard pointers to track lazy active mm existence
Documentation/RCU/rcu_dereference.rst | 38 +++++- Documentation/mm/active_mm.rst | 9 +- arch/Kconfig | 32 ----- arch/powerpc/Kconfig | 1 - arch/powerpc/mm/book3s64/radix_tlb.c | 23 +--- include/linux/compiler.h | 63 ++++++++++ include/linux/hazptr.h | 165 ++++++++++++++++++++++++++ include/linux/mm_types.h | 3 - include/linux/sched/mm.h | 68 ++++------- kernel/Makefile | 2 +- kernel/exit.c | 4 +- kernel/fork.c | 47 ++------ kernel/hazptr.c | 51 ++++++++ kernel/sched/sched.h | 8 +- lib/Kconfig.debug | 10 -- 15 files changed, 358 insertions(+), 166 deletions(-) create mode 100644 include/linux/hazptr.h create mode 100644 kernel/hazptr.c
Signature · 1 line
2.39.2