Skip to content

rseq: Implement time slice extension mechanism

Thomas Gleixner linux-arch lkml 6 versions – 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 · linked by author and title

  1. v6 Latest11 patches 42 repliesApplied
  2. v511 patches 0 repliesSuperseded
  3. v412 patches 4 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v312 patches50 repliesSuperseded
v212 patches16 repliesSuperseded
v112 patches41 repliesSuperseded

Changes in v6 from the cover letter

- Rebase on v6.19-rc1

- Fold typo fixes - Sebastian

- Switch to syscall number 471

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/11rseq: Add fields and constants for time slice extensionDocumentation/userspace-api/index.rst Documentation/userspace-api/rseq.rst include/linux/rseq_types.h +3 more+220 -115 replies
2/11rseq: Provide static branch for time slice extensionsDocumentation/admin-guide/kernel-parameters.txt include/linux/rseq_entry.h kernel/rseq.c+33 -00 replies
3/11rseq: Add statistics for time slice extensionsinclude/linux/rseq_entry.h kernel/rseq.c+19 -00 replies
4/11rseq: Add prctl() to enable time slice extensionsinclude/linux/rseq.h include/uapi/linux/prctl.h kernel/rseq.c +1 more+77 -00 replies
5/11rseq: Implement sys_rseq_slice_yield()arch/alpha/kernel/syscalls/syscall.tbl arch/arm/tools/syscall.tbl arch/arm64/tools/syscall_32.tbl +19 more+46 -11 reply
6/11rseq: Implement syscall entry work for time slice extensionsinclude/linux/entry-common.h include/linux/rseq.h include/linux/thread_info.h +2 more+112 -103 replies
7/11rseq: Implement time slice extension enforcement timerDocumentation/admin-guide/sysctl/kernel.rst include/linux/rseq_entry.h include/linux/rseq_types.h +1 more+167 -1315 replies
7/11rseq: Implement time slice extension enforcement timerDocumentation/admin-guide/sysctl/kernel.rst include/linux/rseq_entry.h include/linux/rseq_types.h +1 more+167 -130 replies
8/11rseq: Reset slice extension when scheduledinclude/linux/rseq_entry.h+28 -21 reply
9/11rseq: Implement rseq_grant_slice_extension()include/linux/rseq_entry.h+108 -03 replies
10/11entry: Hook up rseq time slice extensionkernel/entry/common.c+12 -24 replies
11/11selftests/rseq: Implement time slice extension testtools/testing/selftests/rseq/.gitignore tools/testing/selftests/rseq/Makefile tools/testing/selftests/rseq/rseq-abi.h +1 more+251 -10 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchArnd BergmannMathieu Desnoyers
1/11
2/11
3/11
4/11
5/11A-b R-b
6/11
7/11R-b
7/11R-b
8/11R-b
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [patch V6 00/11] rseq: Implement time slice extension mechanism

This is a follow up on the V5 version:

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

V1 contains a detailed explanation:

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

TLDR: Time slice extensions are an attempt to provide opportunistic priority ceiling without the overhead of an actual priority ceiling protocol, but also without the guarantees such a protocol provides.

The intent is to avoid situations where a user space thread is interrupted in a critical section and scheduled out, while holding a resource on which the preempting thread or other threads in the system might block on. That obviously prevents those threads from making progress in the worst case for at least a full time slice. Especially in the context of user space spinlocks, which are a patently bad idea to begin with, but that's also true for other mechanisms.

This series uses the existing RSEQ user memory to implement it.

Changes vs. V5:

- Rebase on v6.19-rc1

- Fold typo fixes - Sebastian

- Switch to syscall number 471

The series is based on v6.19-rc1 and is also available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rseq/slice

Thanks,

tglx