Skip to content

RFC Introduce serialized smp_call_function APIs

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2smp: Implement serialized smp_call_function APIsinclude/linux/smp.h kernel/smp.c+134 -122 replies
2/2sched/membarrier: Use serialized smp_call_function APIskernel/sched/membarrier.c+7 -170 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] Introduce serialized smp_call_function APIs

commit 944d5fe50f3f ("sched/membarrier: reduce the ability to hammer on sys_membarrier") introduces a mutex over all membarrier operations to reduce its ability
to slow down the rest of the system.

This RFC series has two objectives:

1) Move this mutex to the smp_call_function APIs so other system calls using smp_call_function IPIs are limited in the same way,

2) Restore scalability of MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ with MEMBARRIER_CMD_FLAG_CPU, which targets specific CPUs with IPIs. This may or may not be useful, and I would welcome benchmarks from users of this feature to figure out if this is worth it.

This series applies on top of v6.8.

Thanks,

Mathieu

Cc Peter Zijlstra <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Boqun Feng <[email protected]>
Cc Andrew Hunter <[email protected]>
Cc Maged Michael <[email protected]>
Cc Avi Kivity <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Peter Oskolkov <[email protected]>

Mathieu Desnoyers (2):
smp: Implement serialized smp_call_function APIs sched/membarrier: Use serialized smp_call_function APIs

 include/linux/smp.h       |  40 ++++++++++++++
 kernel/sched/membarrier.c |  24 +++------
 kernel/smp.c              | 106 +++++++++++++++++++++++++++++++++-----
 3 files changed, 141 insertions(+), 29 deletions(-)
Signature · 1 line
2.39.2