The lssubsys
command shows cpu
, cpuset
, and memory
subsystems attached to the cpu_and_mem
hierarchy:
~]# lssubsys -am
cpu,cpuset,memory /cgroup/cpu_and_mem
net_cls
ns
cpu
cpuacct
devices
freezer
blkio
We remount the cpu_and_mem
hierarchy, using the remount
option, and including cpuacct
in the list of subsystems:
~]# mount -t cgroup -o remount,cpu,cpuset,cpuacct,memory cpu_and_mem /cgroup/cpu_and_mem
The lssubsys
command now shows cpuacct
attached to the cpu_and_mem
hierarchy:
~]# lssubsys -am
cpu,cpuacct,cpuset,memory /cgroup/cpu_and_mem
net_cls
ns
devices
freezer
blkio