Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer
up vote 0 down vote accepted

found it..

/proc/diskstats

the 6th and 10th columns are respectively read blocks and write blocks, to get the value in bytes, multiply with 512..

/sys/block/sdX/stat

the 3rd and 7th values are respectively the same as above

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.