Description of problem: When trying to use lxc on my mga4, I need to get CONFIG_MEMCG at yes to make lxc-checkconfig happy I've been recompiling the kernel with this option and since it works much better. Can you enable it in the next build please ? [erwan@localhost ~]$ lxc-checkconfig --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled Multiple /dev/pts instances: enabled --- Control groups --- Cgroup: enabled Cgroup clone_children flag: enabled Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: missing Cgroup cpuset: enabled --- Misc --- Veth pair device: enabled Macvlan: enabled Vlan: enabled File capabilities: enabled Version-Release number of selected component (if applicable): How reproducible: Check lxc-checkconfig on this setup Steps to Reproduce: 1. 2. 3. Reproducible: Steps to Reproduce:
Target Milestone: --- => Mageia 4
Hardware: i586 => All
Please find the new checkconfig with the CONFIG_MEMCG [root@localhost edeploy-lxc]# lxc-checkconfig --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled Multiple /dev/pts instances: enabled --- Control groups --- Cgroup: enabled Cgroup clone_children flag: enabled Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: enabled Cgroup cpuset: enabled --- Misc --- Veth pair device: enabled Macvlan: enabled Vlan: enabled File capabilities: enabled
My diff looks like : --- /boot/config-3.12.8-desktop-2.mga4 2014-01-24 14:58:28.000000000 +0100 +++ /boot/config-3.12.8-2.mga4custom 2014-02-06 12:10:03.487924034 +0100 @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 3.12.8-desktop-2.mga4 Kernel Configuration +# Linux/x86 3.12.8-2.mga4custom Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y @@ -150,7 +150,10 @@ CONFIG_PROC_PID_CPUSET=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y -# CONFIG_MEMCG is not set +CONFIG_MEMCG=y +CONFIG_MEMCG_SWAP=y +CONFIG_MEMCG_SWAP_ENABLED=y +CONFIG_MEMCG_KMEM=y # CONFIG_CGROUP_HUGETLB is not set # CONFIG_CGROUP_PERF is not set CONFIG_CGROUP_SCHED=y @@ -168,6 +171,7 @@ CONFIG_NET_NS=y CONFIG_UIDGID_STRICT_TYPE_CHECKS=y CONFIG_SCHED_AUTOGROUP=y +CONFIG_MM_OWNER=y # CONFIG_SYSFS_DEPRECATED is not set CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y
Assignee: bugsquad => tmb
The trouble with enabling MEMCG is that it adds memory and fork/exit overhead... I'm not sure we want that... atleast on desktop kernels... maybe only for server x86_64 kernel ...
enabled is -server kernels in kernel-3.12.13-1.mga4/5 currently building
Status: NEW => RESOLVEDResolution: (none) => FIXED
Thanks a lot.
Excuse me for returning to this, but is the overhead really significant? I am runnuing a MGA5 here and really getting fed up with firefox starving out my 6GB of memory. Using a cgroup for firefox would solve the problem , but not wo. MEMCG.
CC: (none) => dag