Interview Prep/Linux/Processes, memory and OOM

A process runs much slower than on other identical hosts; `top` shows it at 100% in `%st`.

IntermediateTroubleshootingProcesses, memory and OOM
Answer

Likely causes → CPU steal: the hypervisor is giving CPU time to other VMs (noisy neighbour, or burstable instance out of credits).

Diagnose →

mpstat -P ALL 1 5          # %steal column
top                        # "st" in the Cpu(s) line

In AWS check CPUCreditBalance for t-family instances.

Fix → Move to a non-burstable instance type, enable unlimited mode, or migrate the VM (stop/start moves it to another host in many clouds).

Prevent → Alert on steal time; avoid burstable instances for steady CPU workloads.

All Linux questions Roadmap: Linux

More on Processes, memory and OOM