#814330 cgroup-tools: memory leaks

Package:
cgroup-tools
Source:
libcgroup
Description:
control and monitor control groups (tools)
Submitter:
azurit
Date:
2025-05-27 16:07:04 UTC
Severity:
important
#814330#5
Date:
2016-02-10 12:55:54 UTC
From:
To:
Dear Maintainer,

cgroup daemon cgrulesengd is probably leaking memory really hard. About 10 minutes after starting it uses several GB of RAM (always reproducable) and soon later is killed by OOM. My config file cgconfig.conf  is empty (i'm mounting cgroup file system via systemd and creating cgroups manually) and content of cgrules.conf is:
* * %U/uid

I have only one cgroup created (for non-root user) as only one user is active on this server. I also noticed that memory consumption is much slower after changing cgrules.conf to this:
@users * %U/uid

so it's probably related to moving processes into cgroups (or at least trying to do so as i have only one cgroup).

The software is unusable in this state. Btw, everything was working fine on Debian Wheezy with the same configuration.

#814330#10
Date:
2025-05-27 15:28:25 UTC
From:
To:
I too encountered memory leak in Bookworm's libcgroup 2.0. Happens every
time I do cgrulesengd reload.

Manually backported 3.1 from Trixie and there's no memory leak anymore.