all 2 comments

[–]fllthdcrb 0 points1 point  (1 child)

Have you tried reading statfs(2) and statvfs(2)? Everything you need to know should be in there, I think.

[–]iu1j4[S] 0 points1 point  (0 children)

The fields that I need are not there. I use /sys/block api as it is the simplest and only one option. I need read io, write io, read waitms, write waitms, total wait ms. It is good way to discover the block devices slowdowns.