Hello, On Fri, Jan 10, 2020 at 01:47:19PM -0800, Suren Baghdasaryan wrote: > So from user space's point of view the cgroup is empty and can be > removed but rmdir() fails to do so. I think this behavior is > inconsistent with the claim "cgroup which doesn't have any children > and is associated only with zombie processes is considered empty and > can be removed" from > https://elixir.bootlin.com/linux/v5.4.10/source/Documentation/admin-guide/cgroup-v2.rst#L222 Yeah, the current behavior isn't quite consistent with the documentation and what we prolly wanna do is allowing destroying a cgroup with only dead processes in it. That said, the correct (or at least workable) signal which indicates that a cgroup is ready for removal is cgroup.events::populated being zero, which is a poll(2)able event. Thanks. -- tejun