Bug 124641
Summary: | Memory cgroups are not garbage-collected after release to the system | ||
---|---|---|---|
Product: | File System | Reporter: | John Garcia (john.garcia) |
Component: | SysFS | Assignee: | Greg Kroah-Hartman (greg) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | bmahler |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.5 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
John Garcia
2016-07-12 23:29:05 UTC
On Tue, Jul 12, 2016 at 11:29:05PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=124641 > > Bug ID: 124641 > Summary: Memory cgroups are not garbage-collected after release > to the system > Product: File System > Version: 2.5 > Kernel Version: 4.2 4.2 is old, does this happen on 4.6? Also, can you take this to email, copying me and Tejun and the cgroups developers and lkml? thanks, greg k-h We've tested up to 4.5, I'll fetch a 4.6 and try it out. Changing the reported version to 4.5 to reflect this. Tejun adds valuable context at LKML: It's not that memcg doesn't gc the dead csses but that the memory lying around keeps pinning the memcg struct down. There's nothing wrong with it. As soon as there's memory pressure, the memory will get reclaimed and the memcg structs will be freed. The problem is caused by the memcg struct keeping pinning memcg id which is a pretty limited resource. The above patch fixes the issue by the lifetime of decoupling memcg id from that of memcg struct. I've tested this in 4.6 and was _not_ able to reproduce the result. Resolving now. |