xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/dexplorer_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the dexplorer program.
2
3
4Here we run dexplorer with no arguments. By default it will sample various
5system activities using DTrace at 5 seconds per sample. It creates an
6output tar.gz file containing all the DTrace output,
7
8   # dexplorer
9   Output dir will be the current dir (/export/home/root/DTrace/Dexplorer).
10   Hit enter for yes, or type path:
11   Starting dexplorer ver 0.70.
12   Sample interval is 5 seconds. Total run is > 100 seconds.
13     0% Interrupts by CPU...
14     5% Interrupt counts...
15    10% Dispatcher queue length by CPU...
16    15% Sdt counts...
17    20% Pages paged in by process name...
18    25% Files opened count...
19    30% Disk I/O size distribution by process name...
20    35% Minor faults by process name...
21    40% Vminfo data by process name...
22    45% Mib data by mib statistic...
23    50% TCP write bytes by process...
24    55% Sample process @ 1000 Hz...
25    60% Syscall count by process name...
26    65% Syscall count by syscall...
27    70% Read bytes by process name...
28    75% Write bytes by process name...
29    80% Sysinfo counts by process name...
30    85% New process counts with arguments...
31    90% Signal counts...
32    95% Syscall error counts...
33   100% Done.
34   File is de_jupiter_200506271803.tar.gz
35
36As each sample is taken, a line of output is printed above. The above example
37is for version 0.70, newer versions of dexplorer are likely to print more
38lines as they take more samples.
39
40The final line states which file all the output is now in.
41
42
43
44
45The following displays the contents of a dexplorer file,
46
47   # gunzip de_jupiter_200506271803.tar.gz
48   # tar xf de_jupiter_200506271803.tar
49   de_jupiter_200506271803
50   de_jupiter_200506271803/Cpu
51   de_jupiter_200506271803/Cpu/interrupt_by_cpu
52   de_jupiter_200506271803/Cpu/interrupt_time
53   de_jupiter_200506271803/Cpu/dispqlen_by_cpu
54   de_jupiter_200506271803/Cpu/sdt_count
55   de_jupiter_200506271803/Disk
56   de_jupiter_200506271803/Disk/pgpgin_by_processname
57   de_jupiter_200506271803/Disk/fileopen_count
58   de_jupiter_200506271803/Disk/sizedist_by_processname
59   de_jupiter_200506271803/Mem
60   de_jupiter_200506271803/Mem/minf_by_processname
61   de_jupiter_200506271803/Mem/vminfo_by_processname
62   de_jupiter_200506271803/Net
63   de_jupiter_200506271803/Net/mib_data
64   de_jupiter_200506271803/Net/tcpw_by_process
65   de_jupiter_200506271803/Proc
66   de_jupiter_200506271803/Proc/sample_process
67   de_jupiter_200506271803/Proc/syscall_by_processname
68   de_jupiter_200506271803/Proc/syscall_count
69   de_jupiter_200506271803/Proc/readb_by_processname
70   de_jupiter_200506271803/Proc/writeb_by_processname
71   de_jupiter_200506271803/Proc/sysinfo_by_processname
72   de_jupiter_200506271803/Proc/newprocess_count
73   de_jupiter_200506271803/Proc/signal_count
74   de_jupiter_200506271803/Proc/syscall_errors
75   de_jupiter_200506271803/Info
76   de_jupiter_200506271803/Info/uname-a
77   de_jupiter_200506271803/Info/psrinfo-v
78   de_jupiter_200506271803/Info/prtconf
79   de_jupiter_200506271803/Info/df-k
80   de_jupiter_200506271803/Info/ifconfig-a
81   de_jupiter_200506271803/Info/ps-o
82   de_jupiter_200506271803/Info/uptime
83   de_jupiter_200506271803/log
84
85
86
87The following demonstrates running dexplorer in full quiet mode,
88
89   # dexplorer -qy -d /var/tmp
90   #
91
92No text is written to the screen (-qy). The output file will have been
93put in /var/tmp (-d).
94
95
96