Cgroups: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (→Create) |
Thomas (Diskussion | Beiträge) (→Create) |
||
| Zeile 4: | Zeile 4: | ||
*cat /etc/cgconfig.conf | *cat /etc/cgconfig.conf | ||
<pre> | <pre> | ||
| − | + | Ist bei Ubuntu leer | |
</pre> | </pre> | ||
| + | =Kontrolle= | ||
*lssubsys -am | *lssubsys -am | ||
<pre> | <pre> | ||
| Zeile 19: | Zeile 20: | ||
pids /sys/fs/cgroup/pids | pids /sys/fs/cgroup/pids | ||
</pre> | </pre> | ||
| + | =Anlegen einer Control Group= | ||
| + | *cgcreate -g blkio:/dd | ||
*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 | *https://www.devinhoward.ca/technology/2015/feb/implementing-cgroups-ubuntu-or-debian | ||
Version vom 13. Oktober 2017, 13:11 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