liveBook · Manning

Cgroup

Also called control group

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 →

Also covered in

What to know first

Related concepts

Questions about cgroup

What is cgroup?

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

Which Manning books explain cgroup?

Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more, Kubernetes in Action, Second Edition and Acing the Certified Kubernetes Administrator Exam, Second Edition.

What should I know before learning cgroup?

Manning books that teach cgroup usually introduce container and JSON first.

What is the difference between cgroup and linux namespace?

A cgroup is a Linux kernel mechanism that groups processes to control, limit, isolate, and account for their resource usage. A Linux namespace is a kernel mechanism that gives processes isolated views of selected system resources, such as processes, networks, or filesystem mounts.

What is cgroup a kind of?

Cgroup is a kind of operating system kernel. An operating system kernel is the privileged core software that manages hardware and system resources and provides fundamental services to other software.

What is cgroup part of?

Cgroup is part of Linux. Linux is an open-source, Unix-like operating-system kernel and, by extension, the family of operating systems built around it.

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.