iostat : How to monitor disk activity and CPU load average
Today, we will see How to monitor disk activity and CPU load average using iostat command in linux. TOP command in Linux
iostat command used to report Central Processing Unit (CPU) statistics and input/output statistics for devices, partitions and network filesystems (NFS) under Linux operating sytems
[root@localhost ~]# iostat
Linux 3.10.0-1160.90.1.el7.x86_64 (localhost.localdomain) 07/23/2023 x86_64 (4 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
3.77 0.00 0.91 0.23 0.00 95.08
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 64.60 8.53 1880.55 26172708 5767791287
dm-0 81.73 8.43 1930.29 25843142 5920338386
dm-1 0.00 0.00 0.00 2204 0
dm-2 0.01 0.10 0.00 296606 2048