Interview Prep/Linux/Load, CPU and I/O performance

The app is slow, but CPU, memory, and disk all look fine. Where do you look next?

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Waiting on something external: DNS, a slow downstream API/DB, network retransmits, lock contention, or connection pool exhaustion.

Diagnose →

ss -tnp state established | wc -l
nstat -az | grep -Ei 'retrans|timeout'
strace -f -tt -T -e trace=network -p <PID> 2>&1 | head -50   # slow connect()/recv()
time getent hosts api.internal

Fix → Fix the slow dependency: DNS caching, increase pool size, timeouts with retries, or fix packet loss.

Prevent → Distributed tracing and per-dependency latency metrics.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance