Modern QA2026System Resources — tiles
Log inJoin
13 / 55 · 19 Linux & Command Line · Permissions and Processes← prev⊞ allnext →☰ Read as one page

2.7System Resources

When tests are slow or failing due to resource constraints, check system resources.

# Memory usage
free -h
#               total    used    free    available
# Mem:          16Gi     12Gi    1.2Gi   3.5Gi
# Swap:         4.0Gi    0.5Gi   3.5Gi

# CPU usage per core
mpstat -P ALL

# IO statistics (disk read/write)
iostat -x 1 5  # Report every 1 second, 5 times

# Overall system load
uptime
# 14:30:00 up 23 days, load average: 2.45, 1.87, 1.23
# Load averages: 1 minute, 5 minutes, 15 minutes
# If load average > number of CPU cores, system is overloaded

Resource-Related Test Failures

Symptom Check Likely Cause
Tests timeout randomly free -h Low memory, swapping
Tests slow on CI uptime High load average, shared runner
"No space left on device" df -h Disk full (test artifacts, Docker images)
"Cannot allocate memory" free -h Out of RAM (too many browser instances)
"Too many open files" ulimit -n File descriptor limit reached