]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/intoncpu_example.txt
MFC r368207,368607:
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / intoncpu_example.txt
1 The following is an example of the intoncpu.d script.
2
3
4 Here we run it for a few seconds then hit Ctrl-C,
5
6    # ./intoncpu.d
7    Tracing... Hit Ctrl-C to end.
8    ^C
9    uhci1
10    
11               value  ------------- Distribution ------------- count
12                2048 |                                         0
13                4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
14                8192 |                                         0
15    uhci0
16    
17               value  ------------- Distribution ------------- count
18                 512 |                                         0
19                1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         16
20                2048 |@@@@                                     2
21                4096 |@@                                       1
22                8192 |@@                                       1
23               16384 |                                         0
24    rtls0
25    
26               value  ------------- Distribution ------------- count
27                 512 |                                         0
28                1024 |@@@@@@@@@@@@@@@@                         8
29                2048 |@@@@@@@@@@                               5
30                4096 |@@@@@@                                   3
31                8192 |                                         0
32               16384 |@@                                       1
33               32768 |@@                                       1
34               65536 |@@@@                                     2
35              131072 |                                         0
36
37 The rtls0 driver (the network interface) has encourtered the most interrupts,
38 with the time taken to process each interrupt visible as a distribution.
39 These times ranged from around 1000 ns (1 us), to at least 65536 ns (65 us).
40
41 To determine which devices the instance names represent (eg, "uhci1"), the
42 /etc/path_to_inst file could be examied.
43
44
45
46 The following is a longer example of running intoncpu.d,
47
48    # ./intoncpu.d
49    Tracing... Hit Ctrl-C to end.
50    ^C
51    uhci1
52    
53               value  ------------- Distribution ------------- count
54                2048 |                                         0
55                4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 6
56                8192 |                                         0
57    ata1
58    
59               value  ------------- Distribution ------------- count
60                8192 |                                         0
61               16384 |@@@@@@@@@@@@@@@@@@@@                     2
62               32768 |@@@@@@@@@@@@@@@@@@@@                     2
63               65536 |                                         0
64    ata0
65    
66               value  ------------- Distribution ------------- count
67                2048 |                                         0
68                4096 |@@@@@@@@@@@@@                            55
69                8192 |@@@@@@@@@@@@@@@@@@@@@@@@@@               113
70               16384 |@                                        5
71               32768 |                                         0
72    uhci0
73    
74               value  ------------- Distribution ------------- count
75                 512 |                                         0
76                1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   1288
77                2048 |@@                                       53
78                4096 |                                         6
79                8192 |                                         0
80    rtls0
81    
82               value  ------------- Distribution ------------- count
83                 512 |                                         0
84                1024 |@@@@@@@@@@@@@@@@@@@@                     665
85                2048 |@@@@@@@@@                                307
86                4096 |@                                        35
87                8192 |                                         0
88               16384 |@@@@@@@                                  229
89               32768 |@@@                                      91
90               65536 |@                                        19
91              131072 |                                         1
92              262144 |                                         0
93