How to measure disk activity through the Linux command
This article mainly shows you "how to measure disk activity through the Linux command", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to measure disk activity through the Linux command" this article.
Two of these commands (iostat and ioping) may have to be added to your system, both of which also require you to use sudo privileges, and all five commands provide a useful way to view disk activity.
Probably the simplest and most intuitive of these commands is dstat.
Dtstat
Although the dstat command begins with the letter "d", it provides statistics that go far beyond disk activity. If you only want to see disk activity, you can use the-d option. As shown below, you will get a continuous list of disk read / write measurements until the display is stopped using CTRL-c. Note that after the first report information, each subsequent line in the display will report disk activity in the next interval, with a default value of only one second.
$dstat-dmurdskamp read writ-read writ 949B 73k 65k 0 < = first second 0 24k