liveBook · Manning

Cgroup

A cgroup is a Linux kernel mechanism that groups processes to control, limit, isolate, and account for their resource usage.

How 3 Manning books explain it

Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

A Linux kernel mechanism for grouping processes and limiting or accounting for their resource usage.

How it is used
Constrains and monitors process-group resources to prevent container workloads from exhausting shared system capacity.
How deep it goes
Defines hierarchical grouping and names resource examples, then connects cgroups to pods and systemd process tracking.
Examples
Uses memory, CPU, and network constraints, pod-level sharing, and systemd service scopes as concrete examples.
What you can do after
Operate and configure Podman services with systemd while understanding cgroup-based resource and process management.

Read how Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more explains cgroup →

Kubernetes in Action, Second Edition

A cgroup is a Linux kernel mechanism that groups processes and limits, accounts for, and isolates their use of resources such as CPU, memory, and bandwidth.

How it is used
Protects critical processes and containers by controlling their CPU, memory, disk, and network resource consumption.
How deep it goes
Defines resource control and demonstrates Docker limits, but stops short of explaining cgroup internals.
Examples
Demonstrates Docker commands for selecting CPU cores, limiting CPU time, and setting container memory limits.
What you can do after
Apply cgroups through Docker options to constrain a container's CPU and memory consumption.

Read how Kubernetes in Action, Second Edition explains cgroup →

Acing the Certified Kubernetes Administrator Exam, Second Edition

A cgroup is a Linux kernel mechanism for organizing and controlling processes and their resource consumption.

How it is used
Explains how kind layers Linux cgroups and namespaces to isolate Kubernetes containers inside Docker-based nodes.
How deep it goes
Connects cgroups to nested node and pod isolation and kubelet startup, but does not detail cgroup configuration or resource-limit syntax.
Examples
Uses kind-control-plane and kind-worker containers, kubectl node output, Docker inspection, and kubelet service status.
What you can do after
Evaluate layered container isolation by inspecting kind nodes, runtimes, kernels, and kubelet cgroup initialization.

Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains cgroup →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.