System information
128 System Analysis and Tuning Guide
10.4.2 Checking the Environment
The kernel shipped with SUSE Linux Enterprise Server supports cgroups. There is no
need to apply additional patches. Execute lxc-checkconfig to see a cgroups en-
vironment similar to the following output:
--- 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 namespace: 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
To find out which subsystems are available, proceed as follows:
mkdir /cgroups
mount -t cgroup none /cgroups
grep cgroup /proc/mounts
The following subsystems are available: perf_event, blkio, net_cls, freezer, devices,
memory, cpuacct, cpu, cpuset.
10.4.3 Example: Cpusets
With the command line proceed as follows:
1 To determine the number of CPUs and memory nodes see /proc/cpuinfo and
/proc/zoneinfo.
2 Create the cpuset hierarchy as a virtual file system (source: /usr/src/linux/Docu-
mentation/cgroups/cpusets.txt):