Re: [PATCH v2] sched: RT bandwidth interface for cgroup unified hierarchy

From: Randy Dunlap
Date: Tue Jun 21 2022 - 22:14:43 EST




On 6/21/22 18:55, Chengming Zhou 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.

This patch add RT bandwidth interface "cpu.max.rt" and update the
documentation accordingly.

Signed-off-by: Chengming Zhou<zhouchengming@xxxxxxxxxxxxx>
---
v2:
- minor fix for documentation per Randy's review. Thanks.

Documentation changes look good. Thanks.

---
Documentation/admin-guide/cgroup-v2.rst | 13 +++++++++++
kernel/sched/core.c | 31 +++++++++++++++++++++++++
kernel/sched/rt.c | 2 +-
kernel/sched/sched.h | 1 +
4 files changed, 46 insertions(+), 1 deletion(-)