[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <888b6885-5380-e21f-260f-eb1bb89679c3@bytedance.com>
Date: Thu, 23 Jun 2022 10:23:26 +0800
From: Chengming Zhou <zhouchengming@...edance.com>
To: Michal Koutný <mkoutny@...e.com>
Cc: rdunlap@...radead.org, mingo@...hat.com, peterz@...radead.org,
juri.lelli@...hat.com, vincent.guittot@...aro.org,
dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
tj@...nel.org, lizefan.x@...edance.com, hannes@...xchg.org,
corbet@....net, cgroups@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [External] Re: [PATCH v2] sched: RT bandwidth interface for
cgroup unified hierarchy
Hello Michal,
On 2022/6/23 01:39, Michal Koutný wrote:
> Hello Chengming.
>
> On Wed, Jun 22, 2022 at 09:55:57AM +0800, Chengming Zhou <zhouchengming@...edance.com> wrote:
>> We need to run RT threads in cgroup unified hierarchy, but we can't
>> since the default rt_bandwidth.rt_runtime of non-root task_group is 0
>> and we haven't interface to update it.
>
> Do you really want to make use of group RT schedulling
> (CONFIG_RT_GROUP_SCHED) or just be able to run RT threads in the unified
> hieararchy with cpu controller enabled?
>
The latter could meet our current needs I think, but it would be better that
we can put a max limit on the task_group in case multiple groups need to
run RT processes.
> Those are two different use cases, the former is more complex and it's a
> reason why v2 doesn't expose the RT attributes (yet).
> The latter is typically achieved by unsetting CONFIG_RT_GROUP_SCHED (and
> relying on the global rt_runtime limit).
>
I don't know why v2 differ from v1 in the RT bandwidth control.. Is there
some links of explanation? (CFS bandwidth control can work on v2 now.)
If the problem can't be solved, we have to unset CONFIG_RT_GROUP_SCHED.
Thanks.
> Thanks,
> Michal
Powered by blists - more mailing lists