All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] RT throttling
@ 2026-12-01 14:12 Richard Weinberger (sigma star gmbh)
  2026-12-01 14:12 ` [PATCH 1/5] cobalt/trace: add cobalt_sched_throttle tracepoint Richard Weinberger (sigma star gmbh)
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Richard Weinberger (sigma star gmbh) @ 2026-12-01 14:12 UTC (permalink / raw)
  To: xenomai; +Cc: upstream+xenomai, Richard Weinberger

From: Richard Weinberger <richard@nod.at>

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

-- 
2.56.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-01 15:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 14:12 [RFC PATCH 0/5] RT throttling Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 1/5] cobalt/trace: add cobalt_sched_throttle tracepoint Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 2/5] cobalt/sched: add RT throttling Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 3/5] cobalt/sched-sporadic: stop budget accounting on " Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 4/5] cobalt/sched-quota: charge the running group " Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 5/5] testsuite/smokey: add sched-throttle test Richard Weinberger (sigma star gmbh)
2026-12-01 15:29 ` [RFC PATCH 0/5] RT throttling Jan Kiszka
2026-12-01 15:32   ` Richard Weinberger
2026-12-01 15:36     ` Jan Kiszka
2026-12-01 15:38       ` Richard Weinberger
2026-12-01 15:40         ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.