iotop and iostat disagree
Solution 1:
iostat -xd
will give you the averages since the last counter reset (typically the last system reboot) whereas iotop
produces averages of the last second. If you want comparable results, you should append a refresh time interval to your iostat
call like
iostat -xdmy 5
to average over a time period of 5 seconds.