iostat

From NetBSD Wiki

Jump to: navigation, search

The iostat(8) command displays kernel I/O statistics on terminal, disk and CPU operations.

$ iostat
      tty              md0               wd0               cd0             CPU
 tin tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s  us ni sy in id
   1   94  0.00    0  0.00  13.35    2  0.03   0.00    0  0.00   0  0  1  0 99

Use option -D to display kilobytes transferred, number of transfers and time spent in transfers. You can combine it with -C for CPU statistics aswell:

$ iostat -D -C
              md0               wd0               cd0             CPU
    KB   xfr time     KB   xfr time     KB   xfr time  us ni sy in id
     0     0 0.00     22     2 0.00      0     0 0.00   0  0  0  0 99

See also

View source code (Please report any bugs or suggestions here).

Personal tools