Iosnoop For Linux
brendangregg.com
brendangregg.com
https://developer.apple.com/library/mac/documentation/Darwin...
http://www.slideshare.net/brendangregg/analyzing-os-x-system...
Aside, thanks for reminding me about blktrace. I had forgotten the name last week when I needed the tool.
As for the origin PID... I usually trace that from a different layer of the stack (vfs, file system, or syscall). But this approach has different caveats: the overhead is much higher (more frequent requests), and if I want to associate it with the block I/O, then many solutions are going to require debuginfo, and/or a different tracer. Also, what if a process buffers minutes of disk I/O then exits, and then that PID is reused by a different process calling disk I/O? It's a remote possibility, but I just wanted to mention another problem in this area.