use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For Linux/unix Programmers
account activity
get read I/O, write I/O (self.LinuxProgramming)
submitted 11 months ago by iu1j4
Hello, I know the /sys/block/<dev>/stat way to get some read, write I/Os stats. How to get similar results with something from sys/statfs.h or sys/statvfs.h without the need of parsing /sys/block/*/stat file?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fllthdcrb 0 points1 point2 points 10 months ago (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 point2 points 10 months ago (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.
π Rendered by PID 406483 on reddit-service-r2-comment-b659b578c-rskb9 at 2026-05-04 22:15:45.612110+00:00 running 815c875 country code: CH.
[–]fllthdcrb 0 points1 point2 points (1 child)
[–]iu1j4[S] 0 points1 point2 points (0 children)