Apex › Systems & OS

cgroups — capping what a process can use

The resource half of a container: namespaces control what a process can see, cgroups control what it can use. Pick a controller and set its limit against a hungry workload — cpu.max throttles a CPU-bound task to its quota (run, then paused each period), memory.max OOM-kills a task whose working set doesn’t fit, pids.max contains a fork bomb. This is what Kubernetes requests/limits and docker --memory/--cpus compile down to.

More in Systems & OS