AIX vmstat Recipe

  1. Run vmstat in the background with a 5 second interval:
    nohup vmstat -wt 5 > diag_vmstat_$(hostname)_$(date +%Y%m%d_%H%M%S).txt &
  2. Reproduce the problem.
  3. To stop collection, kill the vmstat process. For example:
    ps -ef | grep "vmstat -wt" | grep -v grep | awk '{print $2}' | xargs kill
  4. Upload diag_vmstat_*

For background, see AIX vmstat.