Linux systemd cgtop Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux systemd-cgtop Guide
Complete beginner-friendly guide to systemd-cgtop on Linux, covering Arch Linux, CachyOS, and other distributions including control group monitoring, resource usage, and system resource tracking.
Table of Contents
Understanding systemd-cgtop
What is systemd-cgtop?
systemd-cgtop monitors control groups.
Uses:
- Monitor cgroups: Watch control groups
- Resource usage: See resource usage
- System monitoring: Monitor system resources
- Performance tracking: Track performance
Why it matters:
- Resource monitoring: Monitor resource usage
- cgroup tracking: Track control groups
- System analysis: Analyze system resources
systemd-cgtop Basics
Start Monitoring
Basic usage:
# Start monitoring
systemd-cgtop
# Shows control group resource usage
Exit
Quit:
# Press 'q' to quit
# Or Ctrl+C
Resource Monitoring
Sort Options
Sort by resource:
# In systemd-cgtop:
# Press 'c' to sort by CPU
# Press 'm' to sort by memory
# Press 't' to sort by tasks
Refresh Rate
Update interval:
# Start with refresh rate
systemd-cgtop -d 2
# -d = delay (2 seconds)
Control Groups
Filter by Path
Filter cgroups:
# Filter by path
systemd-cgtop /system.slice
# Shows only specified path
Tree View
Hierarchical view:
# Tree format
systemd-cgtop --raw
# Shows raw cgroup tree
Troubleshooting
systemd-cgtop Not Found
Check systemd:
# systemd-cgtop is part of systemd
# Usually pre-installed on systemd systems
# Check systemd
systemctl --version
Summary
This guide covered systemd-cgtop usage, control group monitoring, and resource tracking for Arch Linux, CachyOS, and other distributions.
Next Steps
- htop Guide - Process monitoring
- System Monitoring - System monitoring
- Process Management - Process management
- systemd-cgtop Documentation:
man systemd-cgtop
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.