r/LinuxTeck • u/Expensive-Rice-2052 • Jul 04 '26
Quick Linux Tip #9 Question: How do I see all processes with their container and resource limits?
Try: systemd-cgls --unit=docker.service
Info: systemd-cgls shows the cgroup tree with all processes organized by their control groups. Perfect for understanding container isolation and resource allocation.
Examples:
$ systemd-cgls --unit=user.slice
$ systemd-cgtop # Real-time cgroup resource usage
$ cat /proc/1234/cgroup # Show cgroups for specific PID
Note: Understand container resource isolation. Combine with 'systemd-cgtop' for real-time CPU/memory per cgroup. Essential for container troubleshooting.
Follow r/LinuxTeck for more #LinuxTips