Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to get total disk read/write in bytes per hdd device?
for example if i have sda, sdb, and sdc, is there any file on /proc that i could use similar to /proc/net/dev for networking?
the 6th and 10th columns are respectively read blocks and write blocks, to get the value in bytes, multiply with 512..
the 3rd and 7th values are respectively the same as above
You can use this command to see disk Read and Write for specific time. like for 1min use:
# dstat -tdD total 60
Value after total is in seconds.
4 years, 8 months ago
4 years, 7 months ago