Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:systemd-resourcenkontrolle

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
Letzte Überarbeitung Beide Seiten, nächste Überarbeitung
admin_grundlagen:systemd-resourcenkontrolle [2016/03/15 14:03]
stefan_miethke angelegt
admin_grundlagen:systemd-resourcenkontrolle [2016/03/16 23:05]
stefan_miethke [Resource Controller]
Zeile 7: Zeile 7:
  
 ==== CG Baum anzeigen ==== ==== CG Baum anzeigen ====
 +  # systemd-cgls
 +  # systemd-cgtop
  
-<​code>​ 
-# systemd-cgls 
-# systemd-cgtop 
- 
-</​code>​ 
 ==== Slices anzeigen ==== ==== Slices anzeigen ====
 +  # systemctl -t slice
  
-<​code>​ 
-# systemctl -t slice 
- 
-</​code>​ 
 ==== Resource Controller ==== ==== Resource Controller ====
  
Zeile 30: Zeile 24:
   * freezer — suspends or resumes tasks in a cgroup;   * freezer — suspends or resumes tasks in a cgroup;
   * memory — sets limits on memory use by tasks in a cgroup, and generates automatic reports on memory resources used by those tasks;   * memory — sets limits on memory use by tasks in a cgroup, and generates automatic reports on memory resources used by those tasks;
-  * net<​sub>​cls</​sub> ​— tags network packets with a class identifier (classid) that allows the Linux traffic controller (the tc command) to identify packets originating from a particular cgroup task; +  * net_cls ​— tags network packets with a class identifier (classid) that allows the Linux traffic controller (the tc command) to identify packets originating from a particular cgroup task; 
-  * perf<​sub>​event</​sub> ​— enables monitoring cgroups with the perf tool;+  * perf_event ​— enables monitoring cgroups with the perf tool;
   * hugetlb — allows to use virtual memory pages of large sizes, and to enforce resource limits on these pages.   * hugetlb — allows to use virtual memory pages of large sizes, and to enforce resource limits on these pages.
  
 ==== Unit Parameter aendern ==== ==== Unit Parameter aendern ====
 +  # systemctl set-property <​unit-name>​ <​parameter>​=<​value>​
 +  # systemctl set-property httpd.service CPUShares=600 MemoryLimit=500M
 +  # systemctl set-property --runtime httpd.service CPUShares=600 MemoryLimit=500M # temporary change ​
 +Änderungen an schon bestehenden Units werden persistent!
  
-<​code>​ 
-# systemctl set-property <​unit-name>​ <​parameter>​=<​value>​ 
-# systemctl set-property httpd.service CPUShares=600 MemoryLimit=500M 
-# systemctl set-property --runtime httpd.service CPUShares=600 MemoryLimit=500M # temporary change ​ 
- 
-</​code>​ 
 === Unit Parameter === === Unit Parameter ===
  
Zeile 58: Zeile 50:
 |Slice=slice<​sub>​name</​sub> ​                      ​|-- ​    |Unit einem Slice zuordnen ​                                 | |Slice=slice<​sub>​name</​sub> ​                      ​|-- ​    |Unit einem Slice zuordnen ​                                 |
 |ControlGroupAttribute=attribute value            |--     ​|Low-Level Control-Group Parameter setzen ​                  | |ControlGroupAttribute=attribute value            |--     ​|Low-Level Control-Group Parameter setzen ​                  |
- 
- 
- 
- 
  
admin_grundlagen/systemd-resourcenkontrolle.txt · Zuletzt geändert: 2016/03/16 23:07 von stefan_miethke