From: Waiman Long <longman@redhat.com>
To: Joseph Salisbury <joseph.salisbury@canonical.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Frederic Weisbecker <frederic@kernel.org>
Cc: linux-rt-users@vger.kernel.org, cgroups@vger.kernel.org
Subject: Re: Question Regarding isolcpus
Date: Fri, 13 Oct 2023 14:07:55 -0400 [thread overview]
Message-ID: <38a0078f-c9f7-47cd-686c-025b0fa09c88@redhat.com> (raw)
In-Reply-To: <f3604bef-6834-4b69-8708-7d3f6727a873@canonical.com>
On 10/12/23 15:23, Joseph Salisbury wrote:
>
>
> On 10/12/23 15:10, Waiman Long wrote:
>> On 10/12/23 13:27, Joseph Salisbury wrote:
>>>
>>>
>>> On 9/28/23 04:39, Sebastian Andrzej Siewior wrote:
>>>> On 2023-09-26 12:45:14 [-0400], Joseph Salisbury wrote:
>>>>> Hi All,
>>>> Hi,
>>>>
>>>>> I have a question regarding the isolcpus parameter. I've been
>>>>> seeing this
>>>>> parameter commonly used. However, in the kernel.org documentation[0],
>>>>> isolcpus is listed as depreciated.
>>>>>
>>>>> Is it the case that isolcpus should not be used at all? I've seen
>>>>> it used
>>>>> in conjunction with taskset. However, should we now be telling rt
>>>>> users to
>>>>> use only cpusets in cgroups? I see that CPUAffinity can be set in
>>>>> /etc/systemd/system.conf. Is that the preferred method, so the
>>>>> process
>>>>> scheduler will automatically migrate processes between the cpusets
>>>>> in the
>>>>> cgroup cpuset or the list set by CPUAffinity?
>>>> Frederic might know if there is an actual timeline to remove it. The
>>>> suggestions since then is to use cpusets which should be more
>>>> flexible.
>>>> There was also some work (which went into v6.1 I think) to be able to
>>>> reconfigure the partitions at run-time while isolcpus= is a boot time
>>>> option.
>>>> From what I remember, you have a default/system cpuset which all
>>>> tasks
>>>> use by default and then you can add another cpuset for the "isolated"
>>>> CPUs. Based on the partition it can be either the default one or
>>>> isolated [0]. The latter would exclude the CPUs from load balancing
>>>> which is what isolcpus= does.
>>>>
>>>> [0] f28e22441f353 ("cgroup/cpuset: Add a new isolated
>>>> cpus.partition type")
>>>
>>> This question may be for the cgroups folks. The kernel.org
>>> documentation has a WARNING which states: "cgroup2 doesn't yet
>>> support control of realtime processes and the cpu controller can
>>> only be enabled when all RT processes are in the root cgroup "[0].
>>> Does this mean real-time processes are only supported on cgroupsV1?
>>>
>>> Also, this warning is stated for the "CPU" Controller, but there is
>>> no mention of this for a "cpuset" controller. Does this imply that
>>> real-time processes are supported with "cpuset" controllers?
>>
>> Yes, the quoted description applies only to cpu controller. Even for
>> v1 cpu controller, the realtime support is problematic and there is
>> no easy solution to that. That is why cgroup v2 doesn't support it.
>>
>> For other controllers, whether the processes are RT or not are
>> irrelevant. They are equally supported.
>>
>> Cheers,
>> Longman
> Thanks for the feedback, Longman!
>
One further tidbit is the fact that the deadline scheduling policy can
be used as a replacement of using cgroup v1 cpu controller RT knobs to
place a limit one how many RT tasks can run on a CPU.
Cheers,
Longman
prev parent reply other threads:[~2023-10-13 18:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 16:45 Question Regarding isolcpus Joseph Salisbury
2023-09-28 8:39 ` Sebastian Andrzej Siewior
2023-09-28 19:19 ` Rod Webster
2023-09-28 21:03 ` Gautham
2023-10-12 17:27 ` Joseph Salisbury
2023-10-12 19:10 ` Waiman Long
2023-10-12 19:23 ` Joseph Salisbury
2023-10-13 18:07 ` Waiman Long [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=38a0078f-c9f7-47cd-686c-025b0fa09c88@redhat.com \
--to=longman@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=cgroups@vger.kernel.org \
--cc=frederic@kernel.org \
--cc=joseph.salisbury@canonical.com \
--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