aboutsummaryrefslogtreecommitdiff
path: root/Examples/rwbbypid_example.txt
blob: 9091adfef859fb86f93ebfb033f9aaf2590b9623 (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
The following is a demonstration of the rwbbypid.d script,


Here we run it for a few seconds then hit Ctrl-C,

   # rwbbypid.d
   Tracing... Hit Ctrl-C to end.
   ^C
      PID CMD                       DIR            BYTES
    20347 bash                        R               22
    11053 dtrace                      W               32
     1532 Xorg                        W               64
    20317 sshd                        R               86
    20347 bash                        W               87
    20317 sshd                        W              137
     1659 mozilla-bin                 R              213
    20334 sshd                        R             1232
    20334 sshd                        W             1282
    11054 cp                          W            18652
    11054 cp                          R            18652
     1532 Xorg                        R            51112
     1659 mozilla-bin                 W            51261

In the above output, we can see that mozilla-bin with PID 1659 has written
51261 bytes, while Xorg has read 51112 bytes.