|
|
| (26 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Install=
| | *[[Was sind cgroups?]] |
| *apt-get install cgroup-bin cgroup-lite cgroup-tools cgroupfs-mount libcgroup1 | | *[[cgroups Handling]] |
| =Create=
| |
| *cat /etc/cgconfig.conf
| |
| <pre>
| |
| Ist bei Ubuntu leer
| |
| </pre>
| |
| =Kontrolle=
| |
| *lssubsys -am
| |
| <pre>
| |
| 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
| |
| </pre>
| |
| =Anlegen einer Control Group=
| |
| *cgcreate -g blkio:/dd
| |
| =Welche Parameter sind Subsystem Block-I/O vorhanden=
| |
| *cgget -g blkio /dd
| |
| <pre>
| |
| /dd:
| |
| blkio.throttle.io_serviced: Total 0
| |
| blkio.io_service_bytes_recursive: Total 0
| |
| blkio.io_serviced_recursive: Total 0
| |
| blkio.time:
| |
| blkio.io_serviced: Total 0
| |
| blkio.reset_stats:
| |
| blkio.io_wait_time: Total 0
| |
| blkio.weight: 500
| |
| blkio.leaf_weight_device:
| |
| blkio.throttle.read_iops_device:
| |
| blkio.io_merged_recursive: Total 0
| |
| blkio.throttle.write_bps_device:
| |
| blkio.leaf_weight: 500
| |
| blkio.sectors_recursive:
| |
| blkio.weight_device:
| |
| blkio.io_service_time_recursive: Total 0
| |
| blkio.throttle.write_iops_device:
| |
| blkio.throttle.io_service_bytes: Total 0
| |
| blkio.io_service_bytes: Total 0
| |
| blkio.io_wait_time_recursive: Total 0
| |
| blkio.io_service_time: Total 0
| |
| blkio.time_recursive:
| |
| blkio.io_merged: Total 0
| |
| blkio.throttle.read_bps_device:
| |
| blkio.sectors:
| |
| blkio.io_queued: Total 0
| |
| blkio.io_queued_recursive: Total 0
| |
| </pre>
| |
| | |
| =Links=
| |
| *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://www.devinhoward.ca/technology/2015/feb/implementing-cgroups-ubuntu-or-debian | |