Difference between revisions of "cgroups"

From Noah.org
Jump to: navigation, search
m (Created page with 'Category:Engineering A lot of this information is also found in /proc/vmstat. <pre> mount -t cgroup none /cgroups -o memory </pre>')
 
m
 
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
 +
 +
<pre>
 +
aptitude install cgroup-bin
 +
</pre>
 +
 +
Show subsystems and where they are mounted, '''lssubsys -am''':
 +
<pre>
 +
# lssubsys -am
 +
cpuset /sys/fs/cgroup/cpuset
 +
cpu /sys/fs/cgroup/cpu
 +
cpuacct /sys/fs/cgroup/cpuacct
 +
memory /sys/fs/cgroup/memory
 +
devices /sys/fs/cgroup/devices
 +
freezer /sys/fs/cgroup/freezer
 +
blkio /sys/fs/cgroup/blkio
 +
perf_event /sys/fs/cgroup/perf_event
 +
hugetlb /sys/fs/cgroup/hugetlb
 +
</pre>
  
 
A lot of this information is also found in /proc/vmstat.
 
A lot of this information is also found in /proc/vmstat.

Latest revision as of 17:14, 23 January 2014


aptitude install cgroup-bin

Show subsystems and where they are mounted, lssubsys -am:

# lssubsys -am
cpuset /sys/fs/cgroup/cpuset
cpu /sys/fs/cgroup/cpu
cpuacct /sys/fs/cgroup/cpuacct
memory /sys/fs/cgroup/memory
devices /sys/fs/cgroup/devices
freezer /sys/fs/cgroup/freezer
blkio /sys/fs/cgroup/blkio
perf_event /sys/fs/cgroup/perf_event
hugetlb /sys/fs/cgroup/hugetlb

A lot of this information is also found in /proc/vmstat.

mount -t cgroup none /cgroups -o memory