Use the vmstat command to determine where the system performance problems are. vmstat reports statistics about kernel threads, virtual memory, disks, and CPU activity.
Here is the basic syntax for the vmstat command:
vmstat [delay [count]]
- The delay between updates in seconds. If no delay is specified, only one report is printed with the average values since boot.
- Number of iterations. If no count is specified and delay is specified on command line, count defaults to infinity.
|Reports from vmstat||Command|
|Report 10 iterations with 2 seconds delay||
|Report every 1 second||
|Forks report: Number of forks since the last system startup||
|Sum structure report: The absolute count of paging events since system initialization||
|Time stamps: The -t option gives time stamps on each line of data. This is useful analyzing data||