Re: [External] Re: [RFC PATCH] sched: Enable root level cgroup bandwidth control

From: Vincent Guittot
Date: Mon May 23 2022 - 11:36:49 EST


On Wed, 18 May 2022 at 17:55, Feiran Zheng . <fam.zheng@xxxxxxxxxxxxx> wrote:
>
> On Wed, May 18, 2022 at 3:31 PM Vincent Guittot
> <vincent.guittot@xxxxxxxxxx> wrote:
> > there is a DTPM powercap provider in the latest kernel and a scmi
> > power capp provider is under review
>
>
> Thanks, so DTPM can be a good solution for ARM. We could also deal
> with AMD with acpi-cpufreq if powercap is not supported yet.
>
> That aside, I think cpu cgroup has a familiar and simple sysfs
> interface, and is more importantly hardware agnostic so it would be
> really nice to have.

cgroup is about allocating runtime to a group but you want to force a
system idle for power consideration so it looks like abusing the
interface

>
> Alternatively, I assume we can look into a device-independent idle
> injection mechanism?

Yes, idle injection is device-independent and fit better with your needs

thermal framework already support cpu idle cooling device but I'm not
sure your case is only related to thermal so you might want a more
generic interface like powercap--> dtpm --> idle injection

>
> Fam