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

CPU usage is moderate, but the app's latency doubled after moving to a larger VM with two NUMA nodes.

AdvancedTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Memory accessed across NUMA nodes (remote memory is slower), or threads bouncing between sockets.

Diagnose →

lscpu | grep -i numa
numactl --hardware
numastat -p <PID>               # memory per node
perf stat -e cache-misses -p <PID> -- sleep 10

Fix → Pin the process and its memory to a node: numactl --cpunodebind=0 --membind=0 app, or run one instance per node. Check kernel.numa_balancing settings for your workload.

Prevent → Test on the target instance type; for latency-sensitive services consider instances that fit in one NUMA node.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance