[Linux]/proc/diskstats description of what each column means and how disk usage is calculated

Source: Internet
Author: User
Tags disk usage

Linux system/proc directory is stored in the current system running state information, as a file to save, such as CPU information file Cpuinfo, memory information file meminfo, disk information file diskstats.


The meanings of each column in Diskstats are as follows:


1 0 SDA 505235 28461 7421219 6259625 2397331 3804539 49818500 25885599 0 6122393 32152888

Device number device read completed number of times read number of reads sector count read number of milliseconds write completed number of writes completed number of writes sector number of milliseconds the write operation took a millisecond number of input/output requests input/output operations spent in milliseconds input/output operation The weighted number of milliseconds to spend.


In addition to the non-cumulative value of the number of input/output requests being processed, other disk statistics are cumulative values.


The disk usage in Zabbix is collected from Diskstats and the disk usage is calculated as follows:

The difference in the number of milliseconds spent in input/output operations of two acquisitions/acquisition interval time

For example: the first acquisition input/output operation takes 90258834 milliseconds, 10 seconds after the acquisition of a value of 90258710

Then the disk usage is (90258710ms-90258834ms)/10*1000ms = 0.0124, which is 1.24%




[Linux]/proc/diskstats description of what each column means and how disk usage is calculated

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.