Cgroups: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 29: Zeile 29:
 
*https://www.devinhoward.ca/technology/2015/feb/implementing-cgroups-ubuntu-or-debian
 
*https://www.devinhoward.ca/technology/2015/feb/implementing-cgroups-ubuntu-or-debian
 
*http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups
 
*http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups
 +
*https://wiki.archlinux.org/index.php/cgroups

Version vom 14. Oktober 2017, 16:16 Uhr

Install

  • apt-get install cgroup-bin cgroup-lite cgroup-tools cgroupfs-mount libcgroup1

Create

  • cat /etc/cgconfig.conf
Ist bei Ubuntu leer

Kontrolle

  • lssubsys -am
cpuset /sys/fs/cgroup/cpuset
cpu,cpuacct /sys/fs/cgroup/cpu,cpuacct
blkio /sys/fs/cgroup/blkio
memory /sys/fs/cgroup/memory
devices /sys/fs/cgroup/devices
freezer /sys/fs/cgroup/freezer
net_cls,net_prio /sys/fs/cgroup/net_cls,net_prio
perf_event /sys/fs/cgroup/perf_event
hugetlb /sys/fs/cgroup/hugetlb
pids /sys/fs/cgroup/pids

Links