mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zixin Wang" <w1355457260@gmail.com>
Cc: linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Documentation: real-time: Add boot parameters and task isolation section
Date: Fri, 20 Nov 2026 05:49:45 +0000	[thread overview]
Message-ID: <sashiko-outbox-224515@kernel.org> (raw)
In-Reply-To: <20261120054242.523606-1-w1355457260@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] docs: real-time: outdated sched_rt_runtime_us default and
  throttling behavior
--

commit ae882b9844760c78627ba7cec7ca4d357c476313
Author: Zixin Wang <w1355457260@gmail.com>

Documentation: real-time: Add boot parameters and task isolation section

This commit adds a section to the real-time kernel configuration guide
documenting boot parameters and runtime tunables for CPU isolation,
nohz_full, RCU callback offloading, interrupt affinity, idle states, and
real-time throttling.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=220633
Link: https://github.com/elisa-tech/wg-aerospace/issues/222

> diff --git a/Documentation/core-api/real-time/kernel-configuration.rst b/Documentation/core-api/real-time/kernel-configuration.rst
> index d7f08e7b87604..6553249646f10 100644
> --- a/Documentation/core-api/real-time/kernel-configuration.rst
> +++ b/Documentation/core-api/real-time/kernel-configuration.rst
> @@ -216,6 +216,140 @@ just by being enabled.

[ ... ]

> +Real-time throttling
> +--------------------
> +
> +``kernel.sched_rt_runtime_us``
> +  This sysctl, normally set at boot through a ``sysctl.d``
> +  configuration file, limits the CPU time available to real-time
> +  scheduling during ``kernel.sched_rt_period_us``.  The default of
> +  950000 us per 1000000 us reserves 5% of the CPU for non-real-time
> +  tasks.  A value of -1 removes the limit, allowing real-time tasks to
> +  use the full period; do this only after validating the workload,
> +  because a runaway real-time task can then starve the rest of the
> +  system.  Recent kernels require the runtime/period ratio to stay
> +  above 0.05 to preserve bandwidth for the fair deadline server.  See
> +  Documentation/scheduler/sched-rt-group.rst.

[Severity: Low]
Is this description of kernel.sched_rt_runtime_us up to date?

Since c2e390197ad1 ("sched/rt: Update default bandwidth for real-time tasks
to ONE") and 5f6bd380c7bd ("sched/rt: Remove default bandwidth control"),
sysctl_sched_rt_runtime defaults to 1000000 us rather than 950000 us, and no
longer throttles SCHED_FIFO or SCHED_RR tasks when CONFIG_RT_GROUP_SCHED is
disabled.  The default 5% CPU reservation for non-real-time tasks is instead
enforced per CPU by rq->fair_server (50 ms per 1000 ms in
sched_init_dl_servers(), tuned via
/sys/kernel/debug/sched/fair_server/cpuX/runtime), which is not disabled by
setting kernel.sched_rt_runtime_us to -1.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261120054242.523606-1-w1355457260@gmail.com?part=1

      reply	other threads:[~2026-11-20  5:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  5:42 Zixin Wang
2026-11-20  5:49 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-224515@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=w1355457260@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®