* [question] Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now?
@ 2022-09-24 9:26 lujialin (A)
2022-09-26 19:12 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: lujialin (A) @ 2022-09-24 9:26 UTC (permalink / raw)
To: Tejun Heo, peterz; +Cc: Zefan Li, cgroups, LKML
Cgroup2 dose not support controling real-time processes and the cpu
controller can only be enabled when all RT processes are in the root cgroup.
RT stuff was being overhauled when cpu controller interface for cgroup
unified hierarchy was being implemented in 2017. It was decided that we
would like to wait till the RT side settles down and proceed with an
interface that better matches RT.
Is it possible for userspace program to control cpu usage time of RT
process through cgroup2 now? If not, how is the current state looking
and is there any proposed solution?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [question] Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now?
2022-09-24 9:26 [question] Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now? lujialin (A)
@ 2022-09-26 19:12 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2022-09-26 19:12 UTC (permalink / raw)
To: lujialin (A); +Cc: peterz, Zefan Li, cgroups, LKML
Hello,
On Sat, Sep 24, 2022 at 05:26:20PM +0800, lujialin (A) wrote:
> Cgroup2 dose not support controling real-time processes and the cpu
> controller can only be enabled when all RT processes are in the root cgroup.
>
> RT stuff was being overhauled when cpu controller interface for cgroup
> unified hierarchy was being implemented in 2017. It was decided that we
> would like to wait till the RT side settles down and proceed with an
> interface that better matches RT.
>
> Is it possible for userspace program to control cpu usage time of RT process
> through cgroup2 now? If not, how is the current state looking and is there
> any proposed solution?
Not right now. The hard allocation model is pretty challenging to work with
on cgroup1 - they get enabled when cpu controller gets enabled and being
hard allocations, not allocating any prevents the cgroups from using RT at
all while allocating by default takes away from what others can use whether
that allocation is used or not, so some distros turned them off last I
checked. Overall, I'm not sure hard allocations done this way is all that
useful to manage hierarchically given that the resource has to be hard
partitioned anyway.
Can you describe your usecase?
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-26 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-24 9:26 [question] Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now? lujialin (A)
2022-09-26 19:12 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®