xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/iofileb_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the iofileb.d script,
2
3
4Here we run it while a tar command is backing up /var/adm,
5
6   # ./iofileb.d
7   Tracing... Hit Ctrl-C to end.
8   ^C
9      PID CMD              KB FILE
10    29529 tar              56 /var/adm/sa/sa31
11    29529 tar              56 /var/adm/sa/sa03
12    29529 tar              56 /var/adm/sa/sa02
13    29529 tar              56 /var/adm/sa/sa01
14    29529 tar              56 /var/adm/sa/sa04
15    29529 tar              56 /var/adm/sa/sa27
16    29529 tar              56 /var/adm/sa/sa28
17    29529 tar             324 /var/adm/exacct/task
18    29529 tar             736 /var/adm/wtmpx
19
20In the above output, we can see that the tar command has caused 736 Kbytes
21of the /var/adm/wtmpx file to be read from disk. All af the Kbyte values
22measured are for disk activity.
23
24