See what your container is really doing to the kernel

Container Basics On Linux (Namespaces/Cgroups)

See what your container is really doing to the kernel

🧩 The Challenge

You ever look at a container and wonder why the hell it’s acting like it owns the whole machine? Sometimes htop just doesn’t tell the full story about which cgroup is actually eating your lunch.

💡 The Fix

Use systemd-cgtop to get a real-time view of resource usage mapped directly to the control groups, which clears up the confusion between the container ID and the actual process tree.

systemd-cgtop

⚙️ Why It Works

Because systemd manages the cgroups for your containers on modern distros, this utility hooks into the kernel interfaces to show you the hierarchy instead of just a flat list of pids.

🚀 Pro-Tip: Pipe it into grep to isolate the slice for a specific docker container or service unit.

Linux Tips & Tricks | © ngelinux.com | 11/30/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted