]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/rwbytype_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / rwbytype_example.txt
1 The following is an example fo the rwbytype.d script.
2
3
4 We run rwbytype.d for a few seconds then hit Ctrl-C,
5
6    # rwbytype.d
7    Tracing... Hit Ctrl-C to end.
8    ^C
9    PID    CMD               VTYPE  DIR     BYTES
10    1545   sshd                chr    W         1
11    10357  more                chr    R        30
12    2357   sshd                chr    W        31
13    10354  dtrace              chr    W        32
14    1545   sshd                chr    R        34
15    6778   bash                chr    W        44
16    1545   sshd               sock    R        52
17    405    poold               reg    W        68
18    1545   sshd               sock    W       136
19    10357  bash                reg    R       481
20    10356  find                reg    R       481
21    10355  bash                reg    R       481
22    10357  more                reg    R      1652
23    2357   sshd               sock    R      1664
24    10357  more                chr    W     96925
25    10357  more               fifo    R     97280
26    2357   sshd                chr    R     98686
27    10356  grep               fifo    W    117760
28    2357   sshd               sock    W    118972
29    10356  grep                reg    R    147645
30
31 Here we can see that the grep process with PID 10356 read 147645 bytes
32 from "regular" files. These are I/O bytes at the application level, so
33 much of these read bytes would have been cached by the filesystem page cache.
34
35 vnode file types are listed in /usr/include/sys/vnode.h, and give an idea of
36 what the file descriptor refers to.
37