cgroups and namespaces — how containers work
cheat sheet · Linux · cgroups v2 https://lab.dimsanych.ru/en/wiki/cgroups-namespaces/Cheat sheet
-
lsnsnamespaces (isolation) -
systemd-cglscgroup tree -
systemd-cgtopper-cgroup resource usage -
sudo nsenter -t PID -a bashenter all namespaces of a process -
sudo systemctl set-property nginx.service MemoryMax=512M CPUQuota=50% TasksMax=100 -
systemctl show nginx.service -p MemoryCurrent -p MemoryMax