From: "juri.lelli@redhat.com" <juri.lelli@redhat.com>
To: "Pierce Wen (溫彥翔)" <Pierce.Wen@mediatek.com>
Cc: "Kuyo Chang (張建文)" <Kuyo.Chang@mediatek.com>,
"bsegall@google.com" <bsegall@google.com>,
"vschneid@redhat.com" <vschneid@redhat.com>,
"dietmar.eggemann@arm.com" <dietmar.eggemann@arm.com>,
"peterz@infradead.org" <peterz@infradead.org>,
"rostedt@goodmis.org" <rostedt@goodmis.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"vincent.guittot@linaro.org" <vincent.guittot@linaro.org>,
"mgorman@suse.de" <mgorman@suse.de>,
"jstultz@google.com" <jstultz@google.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>
Subject: Re: [RFC PATCH 1/1] sched/deadline: Fix RT task potential starvation when expiry time passed
Date: Thu, 24 Jul 2025 10:23:25 +0200 [thread overview]
Message-ID: <aIHtfRB6UuVVbp2z@jlelli-thinkpadt14gen4.remote.csb> (raw)
In-Reply-To: <cd10d32b514d2792659fe03ad1235771982a6e2f.camel@mediatek.com>
On 23/07/25 22:22, Pierce Wen (溫彥翔) wrote:
...
> Hi all,
Hello!
> I wanted to follow up on the discussion regarding the potential RT task
> starvation issue and check if there have been any further updates or
> feedback.
>
> To recap and provide some additional context:
>
> 1. As discussed in the thread (see
> https://lore.kernel.org/all/CANDhNCqYCpdhYS9afdKeY34Bmw8MXyqKWCSTxOZNLTjYrUaVXg@mail.gmail.com/
> ), it has been demonstrated that the use of a scaled timer can indeed
> induce RT starvation under certain conditions.
This first case has been handled by fc975cfb36393 ("sched/deadline: Fix
dl_server runtime calculation formula") on tip/master.
> 2. Furthermore, since the delta_exec time calculation relies on the
> clock_task member of struct rq, which is affected by IRQ time on the
> runqueue, there is a risk that if IRQ time becomes excessively long in
> some corner cases, it could also lead to RT starvation.
>
> 3. Based on these observations, we strongly recommend adopting a
> recovery patch to address these critical scenarios and prevent RT task
> starvation, especially in cases where the current logic may not be
> sufficient.
As I was saying, I am not against the patch proposed to address the
starvation issue discussed in this thread. Maybe the patch can be
reposted with the addition of a comment on the code path related to
dl-server explaining why the special case is needed?
Thanks,
Juri
next prev parent reply other threads:[~2025-07-24 8:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-15 13:10 Kuyo Chang
2025-06-16 15:03 ` Juri Lelli
2025-06-18 14:20 ` Kuyo Chang
2025-06-19 13:13 ` Juri Lelli
2025-06-20 3:00 ` Kuyo Chang
2025-06-20 15:22 ` Juri Lelli
2025-06-21 2:55 ` Kuyo Chang
2025-07-23 22:22 ` Pierce Wen (溫彥翔)
2025-07-24 8:23 ` juri.lelli [this message]
2025-07-30 10:06 ` Geert Uytterhoeven
2025-07-31 15:00 ` Christian Loehle
2025-08-15 4:35 ` Jiri Slaby
2025-08-20 12:57 ` Diederik de Haas
2025-08-27 6:45 ` [tip: sched/urgent] " tip-bot2 for kuyo chang
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=aIHtfRB6UuVVbp2z@jlelli-thinkpadt14gen4.remote.csb \
--to=juri.lelli@redhat.com \
--cc=Kuyo.Chang@mediatek.com \
--cc=Pierce.Wen@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=jstultz@google.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.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®