🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Advanced

What is Cgroup?

A Linux kernel feature that limits, accounts for, and isolates resource usage of process groups.

Control groups (cgroups) are a fundamental building block of containers. They limit and monitor CPU, memory, disk I/O, and network bandwidth for groups of processes. Docker and Kubernetes use cgroups extensively.

Cgroups v2 (unified hierarchy) is the modern implementation. Key controllers include cpu, memory, io, and pids. Systemd integrates with cgroups for service resource management via resource control directives in unit files.