Put a process on a resource budget.
In this interactive Linux lesson from Stencel Academy you don't just read — you type real commands like echo 40000 100000 > cpu.max, echo 256M > memory.max, hog and watch the machine respond on a live, animated map. It is part of the free How Linux Works course.
Builds on: Namespaces.
cat /sys/fs/cgroup/app/memory.current — Live memory usage, in bytes.systemd-cgls — The cgroup tree.cat /sys/fs/cgroup/app/cpu.stat — How often the CPU valve clamped it.