Popular interview question: how to diagnose a mysterious process thatβs taking too much CPU, memory, IO, etc?
The diagram below illustrates helpful tools in a Linux system.
πΉβvmstatβ - reports information about processes, memory, paging, block IO, traps, and CPU activity.
πΉβiostatβ - reports CPU and input/output statistics of the system.
πΉβnetstatβ - displays statistical data related to IP, TCP, UDP, and ICMP protocols.
πΉβlsofβ - lists open files of the current system.
πΉβpidstatβ - monitors the utilization of system resources by all or specified processes, including CPU, memory, device IO, task switching, threads, etc.
Credit: Diagram by Brendan Gregg
β
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages):
bit.ly/3KCnWXq