Arch Linux System Monitoring - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Arch Linux System Monitoring Guide
Complete beginner-friendly guide to system monitoring on Arch Linux, including resource monitoring, system health checks, and monitoring tools.
Table of Contents
Resource Monitoring
CPU Monitoring
Monitor CPU:
# top
top
# htop
htop
# CPU usage
mpstat 1
Memory Monitoring
Monitor memory:
# free
free -h
# Memory usage
vmstat 1
# Detailed
cat /proc/meminfo
Disk Monitoring
Monitor disk:
# iostat
sudo pacman -S sysstat
iostat -x 1
# Disk usage
df -h
du -sh /path
System Health
System Information
Check system:
# System info
uname -a
hostnamectl
uptime
# Hardware info
lscpu
free -h
lsblk
Service Status
Check services:
# List services
systemctl list-units --type=service
# Failed services
systemctl --failed
# Service status
systemctl status service-name
Monitoring Tools
htop
Install htop:
# Install htop
sudo pacman -S htop
# Launch
htop
btop
Install btop:
# Install btop
sudo pacman -S btop
# Launch
btop
Glances
Install Glances:
# Install Glances
sudo pacman -S glances
# Launch
glances
netdata
Install netdata:
# Install netdata
yay -S netdata
# Enable service
sudo systemctl enable netdata
sudo systemctl start netdata
# Access: http://localhost:19999
Performance Monitoring
Monitor Performance
Performance tools:
# Install tools
sudo pacman -S sysstat
# CPU stats
sar -u 1
# Memory stats
sar -r 1
# I/O stats
sar -b 1
Log Analysis
Analyze logs:
# Boot time
systemd-analyze
# Service times
systemd-analyze blame
Troubleshooting
High Resource Usage
Find processes:
# High CPU
ps aux --sort=-%cpu | head
# High memory
ps aux --sort=-%mem | head
System Slowdown
Check resources:
# Check load
uptime
# Check processes
top
# Check disk I/O
iostat -x 1
Summary
This guide covered resource monitoring, system health, monitoring tools, performance monitoring, and troubleshooting.
Next Steps
- Free & Top Resource Monitoring - Resource monitoring
- Arch Linux Performance Tuning - Performance
- ArchWiki System Monitoring: https://wiki.archlinux.org/title/System_monitoring
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.