Red Hat Bugzilla – Bug 845285
cgroups memory controller not present
Last modified: 2012-08-02 13:14:02 EDT
Description of problem:
Boot latest rawde kernels and you'll find the cgroups memory controller is missing
It appears the kcofnig variables have been renamed
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cat /proc/cgroups
memory controller is missing
memory controller is present
IIUC, this should fix it, but not tested a build yet...
diff --git a/config-generic b/config-generic
index 3ac2ba9..20024fb 100644
@@ -3926,10 +3926,10 @@ CONFIG_CGROUP_CPUACCT=y
-CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y # XXX disabled by default, pass 'swapaccount'
-# CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED is not set
+CONFIG_MEMCG_SWAP=y # XXX disabled by default, pass 'swapaccount'
+# CONFIG_MEMCG_SWAP_ENABLED is not set
# CONFIG_CGROUP_HUGETLB is not set
Sigh. Thank you for spotting this.
I actually read the help text for CONFIG_MEMCG but didn't realize it was a rename. The blurbs about memory and fork/exit overhead made me leave it off. I guess I'll just flip it back on since we already had it enabled.
Fixed in git. Should be in tomorrow's rawhide.