Pcornel
Linux · Linux Troubleshooting

Performance Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2924

Back to the Topic

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 boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -T | tail — recent kernel messages

Commands

vmstat 1 5
Read current Capacity & Resource Pressure state for a bounded verification step.
ip -s link
ss -s
ss -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

Confirmation

Confirm action

Continue?