๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

Sysfs (/sys)
A virtual filesystem that exports information about kernel subsystems, hardware devices, and device drivers in a structured hierarchy.
Inode
A data structure in Unix filesystems that stores metadata about a file, excluding its name and data.
Systemctl
The primary command for managing systemd services, including starting, stopping, enabling, and checking service status.
SSH (Secure Shell)
A cryptographic network protocol for secure remote login and command execution over an unsecured network.
Linux Kernel Module
A piece of code that can be loaded into the kernel at runtime to extend functionality without rebooting, such as device drivers and filesystems.
Xargs
A command that builds and executes commands from standard input, useful for processing lists of items.
View All Linux Terms โ†’