Analyzing disk performance by using the nmon command

You can use the nmon command on AIX® and Linux operating systems. Use the command to display local system statistics in interactive mode and to record system statistics in recording mode.

Procedure

  1. Run the command as root. You can run the command from any directory, but you must be logged in as the root user. The command starts a background process to capture the specified number of snapshots of system statistics at the specified intervals, and writes the output file.
    Important: Do not use the kill command to end the process because that causes the file to be incomplete and unusable for analysis.

    To run the command, use the following parameters:

    -f
    Specifies that the output is written to a file. The file is created in the directory where you run the command, with the name hostname_YYMMDD_HHMM.nmon.
    -s nnnn
    Specifies the seconds between snapshots of statistics.
    -c nnn
    Specifies the number of snapshots.

    Typically to create a report for performance analysis, you specify 15 minutes between snapshots (900 sec) over 24 hours (96 snapshots). For example, issue the following command:

    nmon -f  -s 900 -c 96
    To collect a snapshot of the system every hour for seven days, issue the following command:
    /home/hm12857/netmon/nmon -f -s 3600 -c 168
    To collect a snapshot of the system every 30 minutes for five days, issue the following command:
    /home/hm12857/netmon/nmon -f -s 1800 -c 240
  2. Analyze the data by using the nmon Analyzer spreadsheet tool. Focus on the disk-busy statistics (Disk %Busy). Look for disks that are consistently over 80% busy (weighted average). The weighted average is shown in red in the chart on the diskbusy tab.