Cgroups: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 21: Zeile 21:
 
*http://www.admin-magazin.de/Das-Heft/2011/06/Cgroups-zur-Ressourcenkontrolle-in-Linux
 
*http://www.admin-magazin.de/Das-Heft/2011/06/Cgroups-zur-Ressourcenkontrolle-in-Linux
 
*https://askubuntu.com/questions/836469/install-cgconfig-in-ubuntu-16-04
 
*https://askubuntu.com/questions/836469/install-cgconfig-in-ubuntu-16-04
 +
*https://www.devinhoward.ca/technology/2015/feb/implementing-cgroups-ubuntu-or-debian

Version vom 13. Oktober 2017, 13:07 Uhr

Install

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

Create

  • cat /etc/cgconfig.conf

  • 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