๐ŸŽ 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

Logrotate
A utility that manages automatic rotation, compression, and removal of log files to prevent disk space exhaustion.
Strace
A diagnostic tool that traces system calls and signals made by a process, useful for debugging and performance analysis.
Journalctl
A command-line tool for querying and viewing logs collected by systemd's journal logging system.
ACL (Access Control List)
An extension to standard Linux file permissions that allows setting fine-grained access rights for specific users and groups beyond owner/group/other.
Systemd
A system and service manager for Linux that initializes the system and manages services, logging, and more.
Sysfs (/sys)
A virtual filesystem that exports information about kernel subsystems, hardware devices, and device drivers in a structured hierarchy.
View All Linux Terms โ†’