🎁 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.

Related Terms

Daemon
A background process that runs continuously on a system, typically providing services like web serving or logging.
Nohup
A command that runs a process immune to hangup signals, allowing it to continue after the terminal session ends.
Crontab Syntax
The time specification format used in cron job scheduling, with five fields defining minute, hour, day of month, month, and day of week.
Sysfs (/sys)
A virtual filesystem that exports information about kernel subsystems, hardware devices, and device drivers in a structured hierarchy.
Grep
A command-line utility for searching plain-text data for lines matching a regular expression pattern.
Journald
The systemd journal daemon that collects and stores log data from services, the kernel, and boot messages in a structured binary format.
View All Linux Terms →