Siduction Forum

Siduction Forum => Software - Support => Topic started by: c.monty on 2015/07/29, 08:26:20

Title: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: c.monty on 2015/07/29, 08:26:20
Hallo!

Ich benötige für die Nutzung von LXC die Kernel Option "cgroup_enable=memory".

Zu diesem Zweck habe ich
Allerdings gibt mir das Programm "lxc-checkconfig" immer noch den Fehler zurück:
Cgroup memory controller: missing


Ich verwende diesen Kernel:
user@pc1-gigabyte:~$ uname -a
Linux pc1-gigabyte 4.1.3-towo.1-siduction-686 #1 SMP PREEMPT siduction 4.1-7 (2015-07-22) i686 GNU/Linux

Frage:
Was muss ich tun um diesen Fehler zu beheben?


THX
Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: devil on 2015/07/29, 10:06:35
Was ergibt denn dmesg | grep cgroup?


greetz
devil
Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: c.monty on 2015/07/29, 19:03:41
Here's the output of various checks against CGROUP:
user@pc1-gigabyte:~$ 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

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig



user@pc1-gigabyte:~$ dmesg | grep cgroup
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.1.3-towo.1-siduction-686 root=UUID=963ef85d-9309-4a5a-8cdb-93c56dd1e350 ro rootflags=subvol=@ cgroup_enable=memory quiet splash
[    0.007879] Initializing cgroup subsys blkio
[    0.007883] Initializing cgroup subsys memory
[    0.007893] Initializing cgroup subsys devices
[    0.007896] Initializing cgroup subsys freezer
[    0.007899] Initializing cgroup subsys net_cls
[    0.007903] Initializing cgroup subsys perf_event
[    0.007906] Initializing cgroup subsys net_prio
[    0.007909] Initializing cgroup subsys hugetlb

user@pc1-gigabyte:~$ ack CGROUP /boot/config-4.1.3-towo.1-siduction-686
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_SCHED=y
CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
CONFIG_NETFILTER_XT_MATCH_CGROUP=m
CONFIG_NET_CLS_CGROUP=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y


Is my interpretation correct that option CONFIG_CGROUP_MEM_RES_CTLR is not compiled in the kernel?
(Optional according to Debian Wiki (https://wiki.debian.org/LXC).)

THX
Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: towo on 2015/07/29, 19:41:36
Is my interpretation correct that option CONFIG_CGROUP_MEM_RES_CTLR is not compiled in the kernel?
There is no such option in 4.1.x kernel.


Maybe that fits better than your old wiki link:
https://wiki.archlinux.org/index.php/Cgroups
Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: c.monty on 2015/07/29, 20:38:17
Well, what does this mean?
Is the option unavailable in 4.1.x Kernel because it's not required?

Or do I need to downgrade to 3.x Kernel?
Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: towo on 2015/07/29, 20:55:08
I don't use nor do i know lxc.
Have you read the Arch-Wiki especialy the part about systemd?


Btw, why you mix languages in one thread? That's realy confusing.

Title: Re: [P] Kernel Option "cgroup_enable=memory" wird nicht aktiviert
Post by: gerd on 2015/07/29, 22:25:42
Bist du sicher, dass du es brauchst bzw. es nicht unabhängig von chkconfig doch funktioniert?

Die Kernel-Config sagt, dass alle cgroup-bezogenen Schalter aktiviert sind.

Und zumindest Application-Container funktionieren hier im Prinzip.
lxc-execute -n foobar -- ps
  PID TTY          TIME CMD
    1 pts/4    00:00:00 init.lxc
    2 pts/4    00:00:00 ps

Der dmesg-Output sagt auch, dass das memory-System geladen wurde.
dmesg | grep cgroup
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.021412] Initializing cgroup subsys blkio
[    0.021414] Initializing cgroup subsys memory
[    0.021419] Initializing cgroup subsys devices
[    0.021421] Initializing cgroup subsys freezer
[    0.021422] Initializing cgroup subsys net_cls
[    0.021424] Initializing cgroup subsys perf_event
[    0.021426] Initializing cgroup subsys net_prio
[    0.021428] Initializing cgroup subsys hugetlb