lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YzH5iM0hy58f0tjd@slm.duckdns.org>
Date:   Mon, 26 Sep 2022 09:12:08 -1000
From:   Tejun Heo <tj@...nel.org>
To:     "lujialin (A)" <lujialin4@...wei.com>
Cc:     peterz@...radead.org, Zefan Li <lizefan.x@...edance.com>,
        cgroups@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [question] Is it possible for userspace program to control cpu
 usage time of RT process through cgroup2 now?

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ