Performance Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2924
Answer
Performance troubleshooting finds the resource that limits a workload — CPU, memory, disk I/O or network — using the USE method: utilisation, saturation and errors for each resource.
Remember
Measure before changing anything. Check each resource with one tool (vmstat, iostat, sar, ss) and compare with a baseline. Fix the first saturated resource.
First checks
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
Commands
vmstat 1 5- Read current Capacity & Resource Pressure state for a bounded verification step.
ip -s linkss -sss -ti
Verify in this order
workload → each resource checked for utilisation, saturation and errors → bottleneck → fix → measured improvement
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2924