Why can't I remove a cgroup?

Valentin Vidić vvidic at valentin-vidic.from.hr
Tue Aug 9 14:37:47 EDT 2022


On Tue, Aug 09, 2022 at 07:30:58PM +0100, Nicky Chorley wrote:
> $ su -c "rm -rf /sys/fs/cgroup/my_group"
> Password:
> rm: cannot remove '/sys/fs/cgroup/my_group/cgroup.events': Operation
> not permitted
> rm: cannot remove '/sys/fs/cgroup/my_group/memory.events': Operation
> not permitted
> ... other lines omitted for brevity
> 
> Could someone please help me understand what's going on here?

Did you try with just "rmdir /sys/fs/cgroup/my_group"?

-- 
Valentin



More information about the Kernelnewbies mailing list