xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/dnlcps_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the dnlcps.d script.
2
3
4Here 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
42A "find" command was running at the time, which had 11,263 hits on the DNLC
43and 5768 misses. An "ls" command scored 22 hits.
44
45The above distribution output can help us identify if procesess
46are both using the DNLC a lot, and what hit rate they are scoring.
47
48