vmstat
Vmstat is a command-line tool available in Unix-like operating systems to monitor various system statistics. It provides real-time information about system memory, CPU usage, disk input/output (I/O), and virtual memory. When executed without any arguments, vmstat displays a summary of the system's current state. It shows statistics such as the average number of processes, memory usage, swap activity, and CPU utilization. Vmstat is helpful in identifying performance issues, as it helps to quickly identify if a system is bottlenecked by CPU, memory, or I/O. It provides insights into how resources are being utilized and can aid in identifying processes that are consuming excessive CPU or memory. It also gives an overview of memory usage, including active, inactive, and free memory pages. Overall, vmstat is a versatile command-line tool for monitoring system performance and diagnosing performance issues in Unix-like systems.
List of commands for vmstat:
-
vmstat:tldr:7b814 vmstat: Display reports every 2 seconds for 5 times.$ vmstat ${2} ${5}try on your machineexplain this command
-
vmstat:tldr:cc936 vmstat: Display virtual memory statistics.$ vmstattry on your machineexplain this command