Hey Bill, Take a look at /usr/demo/dtrace/iosnoop.d on your system. It's an example which comes straight out of the chapter in the Solaris Dynamic Tracing Guide on the io provider:
http://wikis.sun.com/display/DTrace/io+Provider Adam On Wed, Feb 27, 2008 at 05:46:11PM -0800, Bill Shannon wrote: > Is there a dtrace script usable by novices (i.e., me) that will help > me figure out which process is accessing my disk every 3 seconds? > > I moved my home directory to an external disk and now I can hear the > disk rattle every 3 seconds. It's driving me crazy! I really want > to find the culprit. > > I found the DTraceToolkit and used the iofileb.d script, which is > pretty close, but according to it there were no accesses to files > on the disk I'm watching. That seems wrong. Really I'd like to get > a trace as the accesses are happening, not a summary at the end. > > (BTW, any chance it's zfs itself accessing the disk?) > > Thanks. > _______________________________________________ > dtrace-discuss mailing list > [email protected] -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl _______________________________________________ dtrace-discuss mailing list [email protected]
