how to disable memory cgroups

falves1

Well-Known Member
Jan 11, 2009
99
3
48
I disabled memory groups in the Kernel command line, because I care less about how much memory my containers use, I want them to use all the available memory. But the the containers do not start since memory cgroups is disabled.

I need to remove these 2 lines
lxc.cgroup.memory.limit_in_bytes = 88080384000
lxc.cgroup.memory.memsw.limit_in_bytes = 88617254912

maybe there is a template that I ca change so these two lines may never be used again.
 
This is currently not handled as the lines are added unconditionally to the config file. I posted a patch to deal with this to the devel list for review.