Hi,
about 6 months before I had recognized that I have a memory leak on my servers running lxd infrastructure. First, the servers just run out of memory and I rebooted them. Until I had realized that this was a permanent issue it was too late to backtrack changes on the server to find the cause.
After a lot of research I had somehow found out that running agetty inside the container is causing the memory leak (slabinfo -r kmalloc-2k
shows up huge calls of cgroup_mkdir
).
I use Arch Linux as host and the archlinux image for my containers. This image is activating agetty sessions by default. I’ve also checked the ubuntu image but the ubuntu image does not launch agetty so there is no problem.
Since I’d deactivated agetty in the containers the memory leak is gone.
Unfortunately I’m not sure how to proceed in order to report this bug to the right channels. I’m even not sure if it is a agetty bug, a kernel bug or an lxc bug? Also, how to find the maintainer of the archlinux image to recommend him to deactivate agetty by default.
Any hints would be appreciated.
Thank you!