xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/rwtop_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the rwtop program,
2
3
4By default it will refresh the screen every 5 seconds,
5
6   # rwtop
7   2005 Jul 24 01:00:43,  load: 1.02,  app_r:      8 KB,  app_w:     19 KB
8
9     UID    PID   PPID CMD              D            BYTES
10       0  20320  20347 bash             R               10
11       0  20320  20347 bash             W               95
12     100  20317  20314 sshd             R              650
13     100  20317  20314 sshd             W              733
14       0   2365  20320 ls               W             1300
15       0   2364  20320 vi               R             2323
16       0   2365  20320 ls               R             2485
17     100  20334  20331 sshd             R             3010
18     100  20334  20331 sshd             W             3729
19       0   2364  20320 vi               W            14128
20
21In the above output, we can see that a "vi" process wrote 14 Kbytes and
22read 2 Kbytes.
23
24
25
26In the following example, we print the top 5 processes in a scrolling
27output by using "-C" to not clear the screen,
28
29   # rwtop -C -t5
30   Tracing... Please wait.
31   2005 Jul 24 01:03:27,  load: 1.05,  app_r:    261 KB,  app_w:    348 KB
32
33     UID    PID   PPID CMD              D            BYTES
34       0   2381  20320 svcs             W             5801
35       0      9      1 svc.configd      R           115712
36       0   2380  20320 find             W           140003
37     100  20334  20331 sshd             R           150740
38     100  20334  20331 sshd             W           210773
39
40   2005 Jul 24 01:03:32,  load: 1.07,  app_r:    110 KB,  app_w:    233 KB
41
42     UID    PID   PPID CMD              D            BYTES
43     100  20317  20314 sshd             R              419
44     100  20317  20314 sshd             W              468
45       0   2382  20320 find             W           110720
46     100  20334  20331 sshd             R           112835
47     100  20334  20331 sshd             W           128175
48
49   2005 Jul 24 01:03:37,  load: 1.07,  app_r:      6 KB,  app_w:      7 KB
50
51     UID    PID   PPID CMD              D            BYTES
52       0   2383  20320 df               W             1154
53       0   2385  20320 ls               W             1300
54       0   2385  20320 ls               R             2485
55     100  20334  20331 sshd             R             3929
56     100  20334  20331 sshd             W             4339
57
58   ^C
59
60