[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#959022: cgroup-tools: does not work in cgroup2 / unified hierarchy



On Tue, 28 Apr 2020 15:22:35 +0900 Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> wrote:
> Package: cgroup-tools
> Version: 0.41-10
> Severity: normal
> Tags: wontfix
> User: pkg-systemd-maintainers@lists.alioth.debian.org
> Usertags: cgroupv2
> 
> Dear Maintainer,
> 
> It does not work in the cgroup2 / unified hierarchy. It gives
> 
> # lssubsys
> # lscgroup
> cgroups can't be listed: Cgroup is not mounted
> 
> Best regards, Ryutaroh Matsumoto

Hi there,

In this other upstream repo, there is some progress relating
cgroupv2-support:
https://github.com/libcgroup/libcgroup

i.e.:
https://github.com/libcgroup/libcgroup/issues/12

On my Debian sid machine, I can run these simple tests from compile source
(commit 6f387cbc5f4fb8d43371a317356648d1c561efda):

sudo ./src/tools/cgcreate -g io:a/b/c/d
sudo ./src/tools/cgget -g io:a/b/c/d
a/b/c/d:
io.pressure: some avg10=0.00 avg60=0.00 avg300=0.00 total=0
	full avg10=0.00 avg60=0.00 avg300=0.00 total=0
io.max: 
io.weight: default 100
io.stat: 

sudo ./src/tools/lscgroup 
cpuset,cpu,io,memory,hugetlb,pids,rdma:/
cpuset,cpu,io,memory,hugetlb,pids,rdma:/sys-fs-fuse-connections.mount
cpuset,cpu,io,memory,hugetlb,pids,rdma:/sys-kernel-config.mount
cpuset,cpu,io,memory,hugetlb,pids,rdma:/sys-kernel-debug.mount
cpuset,cpu,io,memory,hugetlb,pids,rdma:/a
...

As of today, there are 9 of 12 applications supporting cgroup2.

I'll take a look if I could package it.

Cheers,

 -- Santiago

Attachment: signature.asc
Description: PGP signature


Reply to: