]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/dnlcps_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / dnlcps_example.txt
1 The following is a demonstration of the dnlcps.d script.
2
3
4 Here we run dnlcps.d for o few seconds, then hit Ctrl-C,
5
6    # dnlcps.d
7    Tracing... Hit Ctrl-C to end.
8    ^C
9     CMD: bash             PID: 12508
10    
11               value  ------------- Distribution ------------- count
12                 < 0 |                                         0
13                   0 |@@@@@@@@@@@@@@@@                         2
14                >= 1 |@@@@@@@@@@@@@@@@@@@@@@@@                 3
15    
16     CMD: nscd             PID: 109
17    
18               value  ------------- Distribution ------------- count
19                   0 |                                         0
20                >= 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4
21    
22     CMD: in.routed        PID: 143
23    
24               value  ------------- Distribution ------------- count
25                   0 |                                         0
26                >= 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 12
27    
28     CMD: ls               PID: 12508
29    
30               value  ------------- Distribution ------------- count
31                 < 0 |                                         0
32                   0 |@@@                                      2
33                >= 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    22
34    
35     CMD: find             PID: 12507
36    
37               value  ------------- Distribution ------------- count
38                 < 0 |                                         0
39                   0 |@@@@@@@@@@@@@@                           5768
40                >= 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@               11263
41
42 A "find" command was running at the time, which had 11,263 hits on the DNLC
43 and 5768 misses. An "ls" command scored 22 hits.
44
45 The above distribution output can help us identify if procesess
46 are both using the DNLC a lot, and what hit rate they are scoring.
47