From: Jonathan Schwender <schwenderjonathan@gmail.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: Issue with cyclictest, RT_GROUP_SCHED, isolcpus and NOHZ_FULL
Date: Thu, 18 Feb 2021 18:44:33 +0100 [thread overview]
Message-ID: <5133b008-baf0-65e0-9c7b-07fa2cbb78c4@gmail.com> (raw)
In-Reply-To: <20210218151231.przmuzsygtutjpck@linutronix.de>
On 2/18/21 4:12 PM, Sebastian Andrzej Siewior wrote:
> On 2020-12-30 14:09:19 [+0100], Jonathan Schwender wrote:
>> Hi everyone,
>>
>> I've been trying to test the real-time `performance` possible with
>> containers, by running cyclictest in a container on an RT-Kernel.
>> The issue I've been having does not require containers or an
>> RT kernel though.
>>
>> Issue: cyclictest freezes after running for a few seconds
>> to minutes. After that only the loadavg section is updated,
>> while the count line does not change anymore.
>> cyclictest can't be killed after that point
>> other than by restarting the machine, and
>> this also takes a few minutes until the kernel kills
>> cyclictest.
>>
>> This behaviour only occurs when the following conditions are
>> met:
>>
>> - RT_GROUP_SCHED is used
>> - cyclictest is bound to an isolated cpu core with
>> nohz_full=<core>, and isolcpus=nohz,domain,<core>
> So if you remove RT_GROUP_SCHED and use cyclictest on the nohz_full
> cores then everything is fine?
Yes, I traced it down to RT throttling breaking if nohz_full is set and
a non-root cgroup is used.
The timer tick which resets the runtime, gets moved to a housekeeping
CPU, which
doesn't service the isolated CPUs. This leads to the task being RT
throttled indefinitely.
I proposed a patch [1] which solved my issue however, I haven't received
any feedback on it yet.
The patch basically just extends the exception for the root cgroup to
also apply to all housekeeping CPUs,
but I assume there are better ways to fix this that I don't know about.
[1]
https://lore.kernel.org/lkml/20210202090010.5350-1-schwenderjonathan@gmail.com/
> Sebastian
Jonathan
prev parent reply other threads:[~2021-02-18 18:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-30 13:09 Issue with cyclictest, RT_GROUP_SCHED, isolcpus and NOHZ_FULL Jonathan Schwender
2021-02-18 15:12 ` Sebastian Andrzej Siewior
2021-02-18 17:44 ` Jonathan Schwender [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=5133b008-baf0-65e0-9c7b-07fa2cbb78c4@gmail.com \
--to=schwenderjonathan@gmail.com \
--cc=bigeasy@linutronix.de \
--cc=linux-rt-users@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).