Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:ressourcenverwaltung [2017/11/08 09:31] ingo_wichmann [CGroups mit systemd] |
admin_grundlagen:ressourcenverwaltung [2022/05/30 18:58] (aktuell) sh [Links] |
||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| ===== CGroups mit systemd ===== | ===== CGroups mit systemd ===== | ||
| CPU-Zeit, Block-IO, RAM, ... beschränken: | CPU-Zeit, Block-IO, RAM, ... beschränken: | ||
| - | systemd-run -p CPUQuota=10% -p CPUAccounting=true /usr/local/bin/stress | + | systemd-run -p CPUQuota=10% -p CPUAccounting=true /usr/bin/stress -c 5 |
| === Dokumentation === | === Dokumentation === | ||
| Zeile 50: | Zeile 50: | ||
| Prozess in die Best Effort (== unknown) Klasse hochstufen | Prozess in die Best Effort (== unknown) Klasse hochstufen | ||
| ionice -c 2 -n 0 -p 5432 | ionice -c 2 -n 0 -p 5432 | ||
| + | |||
| + | ===== Load ===== | ||
| + | ist unter Linux eher eine system load als eine CPU load und etwas konfus: | ||
| + | * https://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html | ||
| ====== Links ===== | ====== Links ===== | ||
| * http://www.pro-linux.de/artikel/2/1464/ressourcen-verwaltung-mit-control-groups-cgroups.html | * http://www.pro-linux.de/artikel/2/1464/ressourcen-verwaltung-mit-control-groups-cgroups.html | ||
| * [[ http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/limits.h|aktuelle Beschränkungen im Linux-Kernel ]] | * [[ http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/limits.h|aktuelle Beschränkungen im Linux-Kernel ]] | ||