


IOSTAT(8)             MAINTENANCE COMMANDS              IOSTAT(8)



NAME
     iostat - report I/O statistics

SYNOPSIS
     iostat [ -cdDIt ] [ -l _n ] [ _d_i_s_k ...  ] [ _i_n_t_e_r_v_a_l [  _c_o_u_n_t
     ] ]

DESCRIPTION
     iostat  can  iteratively  report  terminal  and   disk   I/O
     activity,  as  well as CPU utilization.  The first report is
     for  all time since a reboot and each subsequent  report  is
     for the prior interval only.

     In order to compute this information, the kernel maintains a
     number  of counters.  For each disk, seeks and data transfer
     completions and number of words transferred are counted; for
     terminals collectively, the number of input and output char-
     acters are counted.  Also, at each clock tick, the state  of
     each  disk  is  examined  and a tally is made if the disk is
     active.  The kernel also provides approximate transfer rates
     of the devices.

OPTIONS
     iostat's activity class options default  to  tdc  (terminal,
     disk, and CPU). If any activity class options are specified,
     the default is completely overridden.  Therefore, if only -d
     is  specified,  neither  terminal nor CPU statistics will be
     reported.  The last disk option specified (either -d or  -D)
     is the only one that is used.

     -c   Report the percentage of time the system has  spent  in
          user mode, in user mode running low priority processes,
          see nice(1), in system mode, and idling.

     -d   For  each  disk,  report  the   number   of   kilobytes
          transferred  per  second,  the  number of transfers per
          second, and the milliseconds per average seek (see BUGS
          below).

     -D   For each disk, report the reads per second, writes  per
          second, and percentage disk utilization.

     -I   Report the counts in each interval, rather than report-
          ing rates.

     -t   Report the number of characters  read  and  written  to
          terminals.

     -l _n Limit the number of disks included in the report to  _n;
          the  disk  limit defaults to 4.  Note: disks explicitly
          requested (see _d_i_s_k below) are not subject to this disk
          limit.



Sun Release 4.1    Last change: 7 October 1990                  1






IOSTAT(8)             MAINTENANCE COMMANDS              IOSTAT(8)



     _d_i_s_k Explicitly specify the disks to be reported;  in  addi-
          tion  to any explicit disks, any active disks up to the
          disk limit (see -l above) will also be reported.

     _i_n_t_e_r_v_a_l
          Report once each _i_n_t_e_r_v_a_l seconds.

     _c_o_u_n_t
          Only print _c_o_u_n_t reports.

FILES
     /dev/kmem
     /vmunix

SEE ALSO
     vmstat(8)

BUGS
     Milliseconds per average seek is an approximation  based  on
     the disk (not the controller) transfer rate.  Therefore, the
     seek time will be over-estimated in systems with slower con-
     trollers.

     iostat only  provides  statistics  on  the  first  ten  disk
     drives, all others are ignored.






























Sun Release 4.1    Last change: 7 October 1990                  2



