Skip to content

sched: Miscellaneous RT related tweaks

Thomas Gleixner lkml 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5sched: Limit the number of task migrations per batch on RTkernel/sched/core.c+4 -00 replies
2/5sched: Disable TTWU_QUEUE on RTkernel/sched/features.h+5 -00 replies
3/5sched: Move kprobes cleanup out of finish_task_switch()kernel/exit.c kernel/kprobes.c kernel/sched/core.c+6 -100 replies
4/5sched: Delay task stack freeing on RTkernel/exit.c kernel/fork.c kernel/sched/core.c+15 -36 replies
5/5sched: Move mmdrop to RCU on RTinclude/linux/mm_types.h include/linux/sched/mm.h kernel/fork.c +1 more+38 -12 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 0/5] sched: Miscellaneous RT related tweaks

RT enabled kernels have a few issues with the inner workings of the scheduler:

- The remote TTWU_QUEUE mechanism leads to 5x larger maximum latencies

- The batched migration limit of 32 tasks causes large latencies

- The cleanup of kprobes, vmapped stacks of dead tasks and mmdrop() are latency sources and eventually calling into code pathes which take regular spinlocks from within the scheduler core which has preemption disabled.

The following series cleans this up. It is also available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git sched

applied on top of the previous might_sleep() cleanups:

    https://lore.kernel.org/r/[email protected]

Thanks,

tglx

---
 include/linux/mm_types.h |    4 ++++
 include/linux/sched/mm.h |   20 ++++++++++++++++++++
 kernel/exit.c            |    7 +++++++
 kernel/fork.c            |   18 +++++++++++++++++-
 kernel/kprobes.c         |    8 ++++----
 kernel/sched/core.c      |   16 +++++++++-------
 kernel/sched/features.h  |    5 +++++
 7 files changed, 66 insertions(+), 12 deletions(-)