Linux vmstat Recipe
- Run vmstat in the background with a 1 second interval:
nohup vmstat -tnw 1 > diag_vmstat_$(hostname)_$(date +%Y%m%d_%H%M%S).txt &- Some older versions of Linux do not support the
-tor-wflags.
- Some older versions of Linux do not support the
- Reproduce the problem.
- To stop collection, kill the vmstat process. For example:
pkill -TERM -f "vmstat -tnw" - Upload
diag_vmstat_*andnohup.out
For background, see Linux vmstat.