ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



diskhits(1m)                                    USER COMMANDS                                   diskhits(1m)



NAME
       diskhits - disk access by file offset. Uses DTrace.

SYNOPSIS
       diskhits pathname

DESCRIPTION
       This  prints  how  a  file was accessed, the locations on a distribution plot.  This is for the cache
       misses only - the file activity that resulted in disk events.

       Since this uses DTrace, only the root user or users with the dtrace_kernel  privilege  can  run  this
       command.

EXAMPLES
       Sample /var/adm/messages disk activity,
              # diskhits /var/adm/messages


FIELDS
       Location (KB)
              the file offset of the disk activity, Kbytes

       Size (KB)
              size of the disk activity, Kbytes

       Total RW
              Total disk activity, reads + writes


BASED ON
       /usr/demo/dtrace/applicat.d


DOCUMENTATION
       DTrace Guide "io Provider" chapter (docs.sun.com)

       See  the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may
       include full worked examples with verbose descriptions explaining the output.

EXIT
       diskhits will sample until Ctrl-C is hit.

SEE ALSO
       dtrace(1M)



version 0.72                                    Apr 20, 2006                                    diskhits(1m)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.