5 Linux instructions for measuring disk exercise

0
18
5 Linux instructions for measuring disk exercise



$ dstat -d 10
-dsk/total-
learn writ
949B 73k
65k 81M

Discover that the reported information could also be proven in a lot of completely different items — e.g., M (megabytes), okay (kilobytes), and B (bytes).

The dstat command supplies worthwhile insights into total Linux system efficiency, just about changing a set of older instruments, corresponding to vmstat, netstat, iostat, and ifstat, with a versatile and highly effective command that mixes their options. For extra perception into the opposite info that the dstat command can present, check with this publish on the dstat command.

2. iostat

The iostat command helps monitor system enter/output machine loading by observing the time the gadgets are lively in relation to their common switch charges. It’s typically used to guage the stability of exercise between disks.

$ iostat
Linux 6.8.9-100.fc38.x86_64 (fedora) 11/05/2024 _x86_64_ (2 CPU)

avg-cpu: %consumer %good %system %iowait %steal %idle
2.42 0.19 1.44 0.44 0.00 95.52

Machine tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
loop0 0.11 0.24 0.00 0.00 771 0 0
loop1 0.01 0.02 0.00 0.00 63 0 0
sda 25.13 685.20 175.07 102.58 2194224 560621 328480
zram0 3.98 0.94 15.27 0.00 3000 48900 0

After all, all of the stats supplied on Linux loop gadgets can muddle the show while you wish to focus solely in your disks. The command, nevertheless, does present the -p choice, which lets you simply have a look at your disks — as proven within the instructions under.

$ iostat -p sda
Linux 6.8.9-100.fc38.x86_64 (fedora) 11/05/2024 _x86_64_ (2 CPU)

avg-cpu: %consumer %good %system %iowait %steal %idle
2.21 0.17 1.35 0.41 0.00 95.86

Machine tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
sda 27.40 618.74 162.08 1297.02 2194423 574849 4600040
sda1 0.05 1.70 0.00 167.39 6022 1 593676
sda2 0.05 1.26 0.04 192.96 4469 152 684352
sda3 27.27 615.38 162.04 936.67 2182528 574696 3322012

Notice that tps refers to transfers per second.

It’s also possible to get iostat to offer repeated reviews. Within the instance under, we’re getting measurements each 5 seconds through the use of the -d choice.

LEAVE A REPLY

Please enter your comment!
Please enter your name here