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

A server's CPU usage is 100% and `top` shows `kworker` or `ksoftirqd` at the top.

AdvancedTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → ksoftirqd high means the kernel is overwhelmed by soft interrupts, typically network packet processing (traffic flood, single queue NIC). kworker high can be I/O, a driver bug or ACPI issues.

Diagnose →

mpstat -P ALL 1 3          # %soft per CPU, often one CPU at 100%
cat /proc/softirqs; watch -d -n1 'cat /proc/interrupts | head -30'
sar -n DEV 1 3
sudo perf top -g

Fix → Spread interrupts across CPUs: enable multiple NIC queues (ethtool -L eth0 combined 8), run irqbalance, enable RPS/RFS. If it's an attack, filter upstream.

Prevent → Use NICs/instances with multi-queue support; monitor softirq per CPU.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance