Skip to content

RFC sched: Improve cache locality of RSEQ concurrency IDs

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpumask: Implement cpumask_next_andnotinclude/linux/cpumask.h+17 -02 replies
2/2sched: Improve cache locality of RSEQ concurrency IDs for intermittent workloadsfs/exec.c include/linux/mm_types.h kernel/fork.c +2 more+97 -276 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchYury Norov
1/2A-b
2/2

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/2] sched: Improve cache locality of RSEQ concurrency IDs

Intermittent workloads behaving in bursts spaced by more than 100ms on each CPU exhibit bad cache locality and degraded performance compared to purely per-cpu data indexing, because concurrency IDs are allocated over various CPUs and cores, therefore losing cache locality of the associated data.

This series addresses this shortcoming. I observed speedups up to 16.7x compared to plain mm_cid indexing in benchmarks.

It applies on top of v6.10.6.

This deprecates the prior "sched: NUMA-aware per-memory-map concurrency IDs" patch series with a simpler and more general approach.

Feedback is welcome!

Thanks,

Mathieu

Cc Valentin Schneider <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Ben Segall <[email protected]>
Cc Yury Norov <[email protected]>
Cc Rasmus Villemoes <[email protected]>

Mathieu Desnoyers (2):
cpumask: Implement cpumask_next_andnot
sched: Improve cache locality of RSEQ concurrency IDs for intermittent
workloads

 fs/exec.c                |  2 +-
 include/linux/cpumask.h  | 17 +++++++++++
 include/linux/mm_types.h | 66 ++++++++++++++++++++++++++++++++++------
 kernel/fork.c            |  2 +-
 kernel/sched/core.c      |  7 +++--
 kernel/sched/sched.h     | 47 +++++++++++++++++++---------
 6 files changed, 114 insertions(+), 27 deletions(-)
Signature · 1 line
2.39.2