Stencel AcademyHow Linux Works →
Part 4 · Lesson 19 · Expert

cgroups

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.

Key takeaway: cgroups cap what a process can use; namespaces cap what it can see. Together: containment.

Before this lesson

Builds on: Namespaces.

What you'll practise

Terms you'll learn

cgroupmemory.maxcpu.maxOOM killresource limit

Check your understanding

What do cgroups control?
Open the interactive lesson →