Controlling Process Resources with Linux Control Groups
Learn how to limit process resources using Linux cgroups - from the most basic and labour-intensive cgroupfs manipulation to the handiest systemd-run command.

Tutorials, challenges, courses, skill paths, playgrounds, and more — search the whole library in one place.
Learn how to limit process resources using Linux cgroups - from the most basic and labour-intensive cgroupfs manipulation to the handiest systemd-run command.

Can a Kubernetes Pod be created with plain Docker commands? Learn the difference between Containers and Pods by exploring how they are implemented under the hood.

Are all containers just Linux processes? How does the OCI runtime specification define a container? What platforms do OCI containers support? What is a Docker container? Linux containers vs. Virtual Machine containers.

After reading "15 million web servers on one VM" (kapteko.com), I decided to see it in action for myself. So this tutorial uses a real Linux VM to edit, compile, and run small C and Rust programs while reproducing the Linux limits behind the source article. Explore ephemeral ports, per-process memory, and idle kernel sockets. Then run 15,000,000 smoltcp listeners in one user-space process and send requests to them to reproduce the findings from the article.

A systemd-managed worker process starts cleanly, prints a few heartbeat lines, then silently vanishes - over and over again. Diagnose why the process keeps dying and stabilize the service.
Practice pausing and resuming a running container: start a resource-hungry container, pause it, inspect its state, and then unpause it back to life.
Practice pausing (freeze) and resuming (thaw) a resource-hungry Linux process using the cgroup v2 freezer mechanism.
This challenge focuses on debugging memory usage issues in a Go application deployed in a Kubernetes cluster. The goal is to ensure the application can handle moderate traffic without crashing, even when it runs with significantly constrained memory resources.
Start by learning how to limit process resources in Linux using cgroups—from the most basic, hands-on cgroupfs manipulation to the more convenient systemd-run command. Then, explore how Docker and Kubernetes leverage cgroups to control the resource usage of containers and pods.