📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Linux Command Line Performance Monitoring

Performance Monitoring

5 min read
top and htop monitor CPU and memory. free -h shows memory usage. iostat monitors disk I/O and nethogs shows network usage per process. Use these tools to diagnose slowdowns and find resource-hungry processes.

System Performance

top         # CPU/memory usage
htop        # better UI
vmstat 1    # memory, I/O stats every second
iostat -x 1 # disk I/O stats

# Check memory
free -h

# Check CPU info
lscpu
nproc       # number of CPUs

# Process resource usage
pidstat 1   # per-process CPU
iostat -p sda 1  # disk stats