aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/dtracetoolkit/Examples/writedist_example.txt
blob: f334843e2c109d95af9d3cf39cf748265252308d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
The following is an example of the writedist.d script,


Here the writedist.d script is run for a few seconds, then Ctrl-C is hit,

   # writedist.d
   dtrace: description 'sysinfo:::writech ' matched 4 probes
   ^C
   [...]
     Xorg
              value  ------------- Distribution ------------- count
                 16 |                                         0
                 32 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@       169
                 64 |@@@                                      16
                128 |@@                                       10
                256 |                                         0
   
     gnome-terminal
              value  ------------- Distribution ------------- count
                  0 |                                         0
                  1 |@@                                       6
                  2 |                                         0
                  4 |                                         0
                  8 |                                         1
                 16 |@                                        2
                 32 |@@@                                      7
                 64 |                                         0
                128 |@@@@@@@@@@@@@@@@@@@@@@@                  63
                256 |@@@@                                     10
                512 |                                         1
               1024 |@@@@@                                    13
               2048 |@                                        2
               4096 |@@@                                      7

This allows us to understand the write behaviour of each process. The
gnome-terminal command has executed 6 writes that returned 0 bytes, through
to 7 writes that were at least 4096 bytes (up to 8192).