Skip to content

RFC RT throttling

Richard Weinberger (sigma star gmbh) xenomai 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cobalt/trace: add cobalt_sched_throttle tracepointkernel/cobalt/trace/cobalt-core.h+17 -00 replies
2/5cobalt/sched: add RT throttlingdoc/asciidoc/README.INSTALL.adoc include/cobalt/kernel/sched-throttle.h include/cobalt/kernel/sched.h +4 more+450 -30 replies
3/5cobalt/sched-sporadic: stop budget accounting on RT throttlingkernel/cobalt/sched-sporadic.c+7 -00 replies
4/5cobalt/sched-quota: charge the running group on RT throttlingkernel/cobalt/sched-quota.c+27 -120 replies
5/5testsuite/smokey: add sched-throttle testconfigure.ac testsuite/smokey/Makefile.am testsuite/smokey/sched-throttle/Makefile.am +1 more+262 -00 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/5] RT throttling

From: Richard Weinberger <[email protected]>

This patch series implements an RT throttle like Linux has. It allows limiting the total CPU time used by Cobalt threads, if the limit is reached, Linux gets the CPU.

That way, misbehaving applications won't kill the system and will only get throttled instead of killed by the Xenomai runaway thread detection.
The main reason I need this feature is because for a rather specific use case, I need to limit the total available CPU time for all userspace, so Xenomai plus Linux.

I'm curious to read how much you'll hate this. ;-)

Thanks,
//richard

Richard Weinberger (5):
cobalt/trace: add cobalt_sched_throttle tracepoint cobalt/sched: add RT throttling cobalt/sched-sporadic: stop budget accounting on RT throttling cobalt/sched-quota: charge the running group on RT throttling testsuite/smokey: add sched-throttle test

 configure.ac                                  |   1 +
 doc/asciidoc/README.INSTALL.adoc              |  12 +
 include/cobalt/kernel/sched-throttle.h        |  92 ++++++
 include/cobalt/kernel/sched.h                 |  25 +-
 kernel/cobalt/Kconfig                         |  26 ++
 kernel/cobalt/Makefile                        |   1 +
 kernel/cobalt/sched-quota.c                   |  39 ++-
 kernel/cobalt/sched-sporadic.c                |   7 +
 kernel/cobalt/sched-throttle.c                | 266 ++++++++++++++++++
 kernel/cobalt/sched.c                         |  31 +-
 kernel/cobalt/trace/cobalt-core.h             |  17 ++
 testsuite/smokey/Makefile.am                  |   2 +
 testsuite/smokey/sched-throttle/Makefile.am   |   8 +
 .../smokey/sched-throttle/sched-throttle.c    | 251 +++++++++++++++++
 14 files changed, 763 insertions(+), 15 deletions(-)
 create mode 100644 include/cobalt/kernel/sched-throttle.h
 create mode 100644 kernel/cobalt/sched-throttle.c
 create mode 100644 testsuite/smokey/sched-throttle/Makefile.am
 create mode 100644 testsuite/smokey/sched-throttle/sched-throttle.c
Signature · 1 line
2.56.1