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

One CPU core sits at 100% while the others are idle, and the app can't go faster.

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → A single-threaded app or a hot lock, or all network interrupts land on CPU0.

Diagnose →

mpstat -P ALL 1 3          # is it %usr or %soft/%irq?
top -H -p <PID>            # one hot thread?
cat /proc/interrupts | grep -E 'eth0|ens'

Fix → For app bottlenecks: run more processes/workers (e.g. nginx worker_processes auto, gunicorn workers). For IRQs: irqbalance or multi-queue NICs.

Prevent → Load-test to find single-thread limits before production.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance