Container Basics On Linux (Namespaces/Cgroups)
Stop guessing why your containers are eating all the CPU
🧩 The Challenge
Dealing with a noisy container is miserable when you cannot tell if it is hitting a hard cgroup limit or just poorly written code. I have wasted hours staring at load averages only to realize the process was being throttled by the kernel without telling me.
💡 The Fix
Use systemd-cgtop to see exactly how much slice of the pie each cgroup is getting in real-time. It beats trying to parse cryptic files in sysfs by a long shot.
systemd-cgtop
⚙️ Why It Works
This utility hooks into the cgroup hierarchy to give you a live, htop-style view of resource usage per controller. It is much more honest than looking at a standard process list when you have nested containers running.
🚀 Pro-Tip: Hit P to sort by path or M to sort by memory if things are moving too fast to read.
Linux Tips & Tricks | © ngelinux.com | 8/23/2026
