RFC RT throttling
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | cobalt/trace: add cobalt_sched_throttle tracepointkernel/ | +17 | 0 replies | |
| 2/5 | cobalt/sched: add RT throttlingdoc/ include/ include/ +4 more | +450 | 0 replies | |
| 3/5 | cobalt/sched-sporadic: stop budget accounting on RT throttlingkernel/ | +7 | 0 replies | |
| 4/5 | cobalt/sched-quota: charge the running group on RT throttlingkernel/ | +27 | 0 replies | |
| 5/5 | testsuite/smokey: add sched-throttle testconfigure.ac testsuite/ testsuite/ +1 more | +262 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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