Comment 6 for bug 1792349

Daniel McGinnes (djmcginnes) wrote :

Bug reported - link to email is here ->
https://www.spinics.net/lists/cgroups/msg20593.html

I got a pretty positive response:

Thank you for the very detailed and full report!
We've experienced the same (or very similar problem), when memory cgroups
were staying in the dying state for a long time, so that the number of
dying cgroups grew steadily with time.

I've investigated the issue and found several problems in the memory
reclaim and accounting code.

The following commits from the next tree are solving the problem in our case:

010cb21d4ede math64: prevent double calculation of DIV64_U64_ROUND_UP() arguments
f77d7a05670d mm: don't miss the last page because of round-off error
d18bf0af683e mm: drain memcg stocks on css offlining
71cd51b2e1ca mm: rework memcg kernel stack accounting
f3a2fccbce15 mm: slowly shrink slabs with a relatively small number of objects