I have problems with this kind of memory and I looked at it a bit. I wrote a blog post:
http://blog.raymond.burkholder.net/index.php?/archives/639-Debian-Stretch-LXC-Memory-Controller.html
Thus, the kernel is compiled with the necessary cgroup memory support. Fly-in-maz: lxc-checkconfig has an error in it and will not correctly display the status of a memory group. CONFIG_CGROUP_MEM_RES_CTLR=y applies only to old kernels (sometimes up to 3.6, I think).
I make two adjustments: one setting on /boot/config-$version and one setting on /etc/default/grub . Both are explained in the article.
But the bottom line, the general recommendation, is this: don't turn it on unless you really need to manage memory limits on containers. There are some performance and memory issues.
source share