Home | History | Annotate | Line # | Download | only in Examples
      1 The following is a demonstration of the iofile.d script,
      2 
      3 
      4 Here we run it while a tar command is backing up /var/adm,
      5 
      6    # iofile.d
      7    Tracing... Hit Ctrl-C to end.
      8    ^C
      9       PID CMD              TIME FILE
     10      5206 tar               109 /var/adm/acct/nite
     11      5206 tar               110 /var/adm/acct/sum
     12      5206 tar               114 /var/adm/acct/fiscal
     13      5206 tar               117 /var/adm/messages.3
     14      5206 tar               172 /var/adm/sa
     15      5206 tar              3605 /var/adm/messages.2
     16      5206 tar              4548 /var/adm/spellhist
     17      5206 tar              5769 /var/adm/exacct/brendan1task
     18      5206 tar              6416 /var/adm/acct
     19      5206 tar              7587 /var/adm/messages.1
     20      5206 tar              8246 /var/adm/exacct/task
     21      5206 tar              8320 /var/adm/pool
     22      5206 tar              8973 /var/adm/pool/history
     23      5206 tar              9183 /var/adm/exacct
     24         3 fsflush         10882 <none>
     25      5206 tar             11861 /var/adm/exacct/flow
     26      5206 tar             12042 /var/adm/messages.0
     27      5206 tar             12408 /var/adm/sm.bin
     28      5206 tar             13021 /var/adm/sulog
     29      5206 tar             19007 /var/adm/streams
     30      5206 tar             21811 <none>
     31      5206 tar             24918 /var/adm/exacct/proc
     32 
     33 In the above output, we can see that the tar command spent 24918 us (25 ms)
     34 waiting for disk I/O on the /var/adm/exacct/proc file. 
     35 
     36