Monitor CPU and disk usage with iostat

If you would like to get reports statistics for CPU and I/O devices on your system then iostat can help you.

To install it:

sudo apt-get install sysstat

Run it 5 times, every 5 seconds:

iostat -x 5 5

Output:

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           1.30    0.00    0.70    0.40    0.00   97.60
 
Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
sda               0.00     0.40    0.00    1.60     0.00    51.20    64.00     0.01    8.00    0.00    8.00   7.50   1.20
dm-0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
Categories: Linux Tags: , , , , , ,
%d bloggers like this: