1. MagicESP
  2. Ubuntu Server 18.04
  3. Monitor Hard Disk Performance

Monitor Hard Disk Performance

Synonyms:
  1. iotop

iotop is the right tool for monitoring hard performance.

Show my disks

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

sample output

NAME   FSTYPE              SIZE MOUNTPOINT LABEL
sda                      256.2G
|-sda1 ext4                237M /boot
|-sda2 ext4              248.5G /
`-sda3 swap                7.5G [SWAP]
sdb    linux_raid_member   5.5T            
`-md0  ext4               21.9T /raid
sdc    linux_raid_member   5.5T            
`-md0  ext4               21.9T /raid
sdd    linux_raid_member   5.5T            
`-md0  ext4               21.9T /raid
sde    linux_raid_member   5.5T            
`-md0  ext4               21.9T /raid
sdf    linux_raid_member   5.5T            
`-md0  ext4               21.9T /raid

Install iotop

sudo apt install iotop

Use iotop

sudo iotop

alternative commands

dstat -D sda
iostat -xmd 1
watch -d iostat -xmdc 1 2
bwm-ng -i disk