While an application is running, I can monitor disk bandwidth usage using linux tools including dstat.
Now I'd like to know how many sequential or random disk I/Os are occurring in the system.
Does any one know any ways to achieve this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Ypu can write your own FUSE filesystem (what you can do using almost any scripting/programming language, even bash) , that would just proxy filesystem calls to pointed filesystem (and eventually translate paths) plus monitor what you minght want to monitor.
Otherwise you might investigate output of
strace for programs performing I/O calls ofninterest, if possible.