blob: b9c9ee7aaf1e0a9b87c133d116f3331d7f89a974 [file] [log] [blame]
San Mehate20e1342009-06-03 15:36:35 -07001.TH BTT 1 "September 29, 2007" "blktrace git\-20070910192508" ""
2
3
4.SH NAME
5btt \- analyse block i/o traces produces by blktrace
6
7
8.SH SYNOPSIS
9.B btt
10.br
11[ \-a | \-\-seek\-absolute ]
12.br
13[ \-A | \-\-all\-data ]
14.br
15[ \-B <\fIoutput name\fR> | \-\-dump\-blocknos=<\fIoutput name\fR> ]
16.br
17[ \-d <\fIseconds\fR> | \-\-range\-delta=<\fIseconds\fR> ]
18.br
19[ \-D <\fIdev;...\fR> | \-\-devices=<\fIdev;...\fR> ]
20.br
21[ \-e <\fIexe,...\fR> | \-\-exes=<\fIexe,...\fR> ]
22.br
23[ \-h | \-\-help ]
24.br
25[ \-i <\fIinput name\fR> | \-\-input\-file=<\fIinput name\fR> ]
26.br
27[ \-I <\fIoutput name\fR> | \-\-iostat=<\fIoutput name\fR> ]
28.br
29[ \-l <\fIoutput name\fR> | \-\-d2c\-latencies=<\fIoutput name\fR> ]
30.br
31[ \-L <\fIfreq\fR> | \-\-periodic\-latencies=<\fIfreq\fR> ]
32.br
33[ \-M <\fIdev map\fR> | \-\-dev\-maps=<\fIdev map\fR>
34.br
35[ \-o <\fIoutput name\fR> | \-\-output\-file=<\fIoutput name\fR> ]
36.br
37[ \-p <\fIoutput name\fR> | \-\-per\-io\-dump=<\fIoutput name\fR> ]
38.br
39[ \-P <\fIoutput name\fR> | \-\-per\-io\-trees=<\fIoutput name\fR> ]
40.br
41[ \-q <\fIoutput name\fR> | \-\-q2c\-latencies=<\fIoutput name\fR> ]
42.br
43[ \-Q <\fIoutput name\fR> | \-\-active\-queue\-depth=<\fIoutput name\fR> ]
44.br
45[ \-r | \-\-no\-remaps ]
46.br
47[ \-s <\fIoutput name\fR> | \-\-seeks=<\fIoutput name\fR> ]
48.br
49[ \-S <\fIinterval\fR> | \-\-iostat\-interval=<\fIinterval\fR> ]
50.br
51[ \-t <\fIsec\fR> | \-\-time\-start=<\fIsec\fR> ]
52.br
53[ \-T <\fIsec\fR> | \-\-time\-end=<\fIsec\fR> ]
54.br
55[ \-u <\fIoutput name\fR> | \-\-unplug\-hist=<\fIoutput name\fR> ]
56.br
57[ \-v | \-\-verbose ]
58.br
59[ \-V | \-\-version ]
60.br
61[ \-z <\fIoutput name\fR> | \-\-q2d\-latencies=<\fIoutput name\fR> ]
62
63
64.SH DESCRIPTION
65
66btt is a post\-processing tool for the block layer IO tracing tool called
67blktrace(8). As noted in its documentation, blktrace
68is a block layer IO tracing mechanism which provides detailed
69information about request queue operations up to user space.
70
71btt will take in binary dump data from blkparse, and analyse the events,
72producing a series of output from the analysis. It will also build .dat
73files containing "range data" \-\- showing things like Q activity (periods
74of time while Q events are being produced), C activity (likewise for
75command completions), and etc.
76
77Included with the distribution is a simple 3D plotting utility,
78\fIbno_plot\fR, which can plot the block numbers btt outputs if the \fI-B\fR
79option is specified. The display will display each IO generated, with the time
80(seconds) along the X-axis, the block number (start) along the Y-axis and the
81number of blocks transferred in the IO represented along the Z-axis.
82
83
84.SH OPTIONS
85
86.B \-a
87.br
88.B \-\-seek\-absolute
89.RS 4
90When specified on the command line, this directs btt to calculate
91seek distances based solely upon the ending block address of one IO,
92and the start of the next. By default \fBbtt\fR uses the concept
93of the closeness to either the beginning or end of the previous IO. See
94the Users Manual for more details about seek distances.
95.RE
96
97.B \-A
98.br
99.B \-\-all\-data
100.RS 4
101Normally \fBbtt\fR will not print out verbose information concerning
102per-process and per-device data. If you desire that level of detail you can
103specify this option.
104.RE
105
106.B \-B <\fIoutput name\fR>
107.br
108.B \-\-dump\-blocknos=<\fIoutput name\fR>
109.RS 4
110This option will output absolute block numbers to three files prefixed
111by the specified output name:
112.HP
113.I prefix_device_r.dat
114.br
115All read block numbers are output, first column is time (seconds), second is
116the block number, and the third column is the ending block number.
117.HP
118.I prefix_device_w.dat
119.br
120All write block numbers are output, first column is time (seconds), second is
121the block number, and the third column is the ending block number.
122.HP
123.I prefix_device_c.dat
124.br
125All block numbers (read and write) are output, first column is time (seconds),
126second is the block number, and the third column is the ending block number.
127.RE
128
129.B \-d <\fIseconds\fR>
130.br
131.B \-\-range\-delta=<\fIseconds\fR>
132.RS 4
133\fBbtt\fR outputs a file containing Q and C activity, the notion of active
134traces simply means that there are Q or C traces occurring within a certain
135period of each other. The default values is 0.1 seconds; with this option
136allowing one to change that granularity. The smaller the value, the more data
137points provided.
138.RE
139
140.B \-D <\fIdev;...\fR>
141.br
142.B \-\-devices=<\fIdev;...\fR>
143.RS 4
144Normally, \fBbtt\fR will produce data for all devices detected in the
145traces parsed. With this option, one can reduce the analysis to one or more
146devices provided in the string passed to this option. The device identifiers
147are the major and minor number of each device, and each device identifier is
148separated by a colon (:). A valid specifier for devices 8,0 and 8,8 would then
149be: \fI8,0:8,8\fR.
150.RE
151
152.B \-e <\fIexe,...\fR>
153.br
154.B \-\-exes=<\fIexe,...\fR>
155.RS 4
156The \-e option supplies the list of executables that will have I/Os
157analysed.
158.RE
159
160.B \-h
161.br
162.B \-\-help
163.RS 4
164Shows a short summary of possible command line option
165.RE
166
167.B \-i <\fIinput name\fR>
168.br
169.B \-\-input\-file <\fIinput file\fR>
170.RS 4
171Specifies the input file to analyse. This should be a trace file produced
172by \fIblktrace\fR (8).
173.RE
174
175.B \-I <\fIoutput name\fR>
176.br
177.B \-\-iostat=<\fIoutput name\fR>
178.RS 4
179The \-I option directs btt to output iostat\-like data to the specified
180file. Refer to the iostat (sysstat) documentation for details on the
181data columns.
182.RE
183
184.B \-l <\fIoutput name\fR>
185.br
186.B \-\-d2c\-latencies=<\fIoutput name\fR>
187.RS 4
188The \-l option allows one to output per\-IO D2C latencies
189respectively. The supplied argument provides the basis for the output
190name for each device.
191.RE
192
193.B \-L <\fIfreq\fR>
194.br
195.B \-\-periodic\-latencies=<\fIfreq\fR>
196.RS 4
197The \-L option allows one to output periodic latency information for both
198Q2C and D2C latencies. The frequency specified will regulate how often
199an average latency is output -- a floating point value expressing seconds.
200.RE
201
202.B \-M <\fIdev map\fR>
203.br
204.B \-\-dev\-maps=<\fIdev map\fR>
205.RS 4
206The \-M option takes in a file generated by the provided script
207(gen_disk_info.py), and allows for better output of device names.
208.RE
209
210.B \-o <\fIoutput name\fR>
211.br
212.B \-\-output\-file=<\fIoutput name\fR>
213.RS 4
214Specifies the output file name.
215.RE
216
217.B \-p <\fIoutput name\fR>
218.br
219.B \-\-per\-io\-dump=<\fIoutput name\fR>
220.RS 4
221The \-p option will generate a file that contains a list of all IO
222"sequences" \- showing the parts of each IO (Q, A, I/M, D, & C).
223.RE
224
225.B \-P <\fIoutput name\fR>
226.br
227.B \-\-per\-io\-trees=<\fIoutput name\fR>
228.RS 4
229The \-P option will generate a file that contains a list of all IO
230"sequences" \- showing only the Q, D & C operation times. The D & C
231time values are separated from the Q time values with a vertical bar.
232.RE
233
234.B \-q <\fIoutput name\fR>
235.br
236.B \-\-q2c\-latencies=<\fIoutput name\fR>
237.RS 4
238The \-q option allows one to output per\-IO Q2C latencies
239respectively. The supplied argument provides the basis for the output
240name for each device.
241.RE
242
243.B \-Q <\fIoutput name\fR>
244.br
245.B \-\-active\-queue\-depth=<\fIoutput name\fR>
246.RS 4
247The \-Q option allows one to output data files showing the time stamp
248and the depth of active commands (those issued but not completed).
249.RE
250
251.B \-r
252.br
253.B \-\-no\-remaps
254.RS 4
255Ignore remap traces; older kernels did not implement the full remap
256PDU.
257.RE
258
259.B \-s <\fIoutput name\fR>
260.br
261.B \-\-seeks=<\fIoutput name\fR>
262.RS 4
263The \-s option instructs btt to output seek data, the argument provided
264is the basis for file names output. There are two files per device,
265read seeks and write seeks.
266.RE
267
268.B \-S <\fIinterval\fR>
269.br
270.B \-\-iostat\-interval=<\fIinterval\fR>
271.RS 4
272The \-S option specifies the interval to use between data
273output, it defaults to once per second.
274.RE
275
276.B \-t <\fIsec\fR>
277.br
278.B \-\-time\-start=<\fIsec\fR>
279.br
280.B \-T <\fIsec\fR>
281.br
282.B \-\-time\-end=<\fIsec\fR>
283.RS 4
284The \-t/\-T options allow one to set a start and/or end time for analysing
285\- analysing will only be done for traces after \-t's argument and before
286\-T's argument. (\-t and \-T are optional, so if you specify just \-t,
287analysis will occur for all traces after the time specified. Similarly,
288if only \-T is specified, analysis stops after \-T's seconds.)
289.RE
290
291.B \-u <\fIoutput name\fR>
292.br
293.B \-\-unplug\-hist=<\fIoutput name\fR>
294.RS 4
295This option instructs \fBbtt\fR to generate a data file containing histogram
296information for unplug traces on a per device basis. It shows how many
297times an unplug was hit with a specified number of IOs released. There are 21
298output values into the file, as follows:
299
300.RS 4
301a value of 0 represents 0..4 counts
302.br
303a value of 1 represents 5..9 counts
304.br
305a value of 2 represents 10..14 counts
306.br
307etc, until
308.br
309a value of 20 represents 100+ counts
310.br
311.RE
312
313The file name(s) generated use the text string passed as an argument for
314the prefix, followed by the device identifier in \fImajor,minor\fR
315form, with a \fI.dat\fR extension. For example, with \fI\-u
316up_hist\fR specified on the command line: \fIup_hist_008,032.dat\fR.
317.RE
318
319.B \-V
320.br
321.B \-\-version
322.RS 4
323Shows the version of btt.
324.RE
325
326.B \-v
327.br
328.B \-\-verbose
329.RS 4
330Requests a more verbose output.
331.RE
332
333.B \-z <\fIoutput name\fR>
334.br
335.B \-\-q2d\-latencies=<\fIoutput name\fR>
336.RS 4
337The \-z option allows one to output per\-IO Q2D latencies
338respectively. The supplied argument provides the basis for the output
339name for each device.
340.RE
341
342
343.SH AUTHORS
344\fIbtt\fR was written by Alan D. Brunelle. This man page was created
345from the \fIblktrace\fR documentation by Bas Zoetekouw.
346
347
348.SH "REPORTING BUGS"
349Report bugs to <linux\-btrace@vger.kernel.org>
350
351.SH COPYRIGHT
352Copyright \(co 2006 Jens Axboe, Alan D. Brunelle and Nathan Scott.
353.br
354This is free software. You may redistribute copies of it under the terms of
355the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
356There is NO WARRANTY, to the extent permitted by law.
357.br
358This manual page was created for Debian by Bas Zoetekouw. It was derived from
359the documentation provided by the authors and it may be used, distributed and
360modified under the terms of the GNU General Public License, version 2.
361.br
362On Debian systems, the text of the GNU General Public License can be found in
363/usr/share/common\-licenses/GPL\-2.
364
365.SH "SEE ALSO"
366The btt Users Guide, which can be found in /usr/share/doc/blktrace/btt.pdf
367.br
368bno_plot (1), blktrace (8), blkparse (1), verify_blkparse (1), blkrawverify (1), btt (1)
369