San Mehat | e20e134 | 2009-06-03 15:36:35 -0700 | [diff] [blame] | 1 | .TH BTT 1 "September 29, 2007" "blktrace git\-20070910192508" "" |
| 2 | |
| 3 | |
| 4 | .SH NAME |
| 5 | btt \- 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 | |
| 66 | btt is a post\-processing tool for the block layer IO tracing tool called |
| 67 | blktrace(8). As noted in its documentation, blktrace |
| 68 | is a block layer IO tracing mechanism which provides detailed |
| 69 | information about request queue operations up to user space. |
| 70 | |
| 71 | btt will take in binary dump data from blkparse, and analyse the events, |
| 72 | producing a series of output from the analysis. It will also build .dat |
| 73 | files containing "range data" \-\- showing things like Q activity (periods |
| 74 | of time while Q events are being produced), C activity (likewise for |
| 75 | command completions), and etc. |
| 76 | |
| 77 | Included 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 |
| 79 | option 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 |
| 81 | number 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 |
| 90 | When specified on the command line, this directs btt to calculate |
| 91 | seek distances based solely upon the ending block address of one IO, |
| 92 | and the start of the next. By default \fBbtt\fR uses the concept |
| 93 | of the closeness to either the beginning or end of the previous IO. See |
| 94 | the Users Manual for more details about seek distances. |
| 95 | .RE |
| 96 | |
| 97 | .B \-A |
| 98 | .br |
| 99 | .B \-\-all\-data |
| 100 | .RS 4 |
| 101 | Normally \fBbtt\fR will not print out verbose information concerning |
| 102 | per-process and per-device data. If you desire that level of detail you can |
| 103 | specify this option. |
| 104 | .RE |
| 105 | |
| 106 | .B \-B <\fIoutput name\fR> |
| 107 | .br |
| 108 | .B \-\-dump\-blocknos=<\fIoutput name\fR> |
| 109 | .RS 4 |
| 110 | This option will output absolute block numbers to three files prefixed |
| 111 | by the specified output name: |
| 112 | .HP |
| 113 | .I prefix_device_r.dat |
| 114 | .br |
| 115 | All read block numbers are output, first column is time (seconds), second is |
| 116 | the block number, and the third column is the ending block number. |
| 117 | .HP |
| 118 | .I prefix_device_w.dat |
| 119 | .br |
| 120 | All write block numbers are output, first column is time (seconds), second is |
| 121 | the block number, and the third column is the ending block number. |
| 122 | .HP |
| 123 | .I prefix_device_c.dat |
| 124 | .br |
| 125 | All block numbers (read and write) are output, first column is time (seconds), |
| 126 | second 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 |
| 134 | traces simply means that there are Q or C traces occurring within a certain |
| 135 | period of each other. The default values is 0.1 seconds; with this option |
| 136 | allowing one to change that granularity. The smaller the value, the more data |
| 137 | points provided. |
| 138 | .RE |
| 139 | |
| 140 | .B \-D <\fIdev;...\fR> |
| 141 | .br |
| 142 | .B \-\-devices=<\fIdev;...\fR> |
| 143 | .RS 4 |
| 144 | Normally, \fBbtt\fR will produce data for all devices detected in the |
| 145 | traces parsed. With this option, one can reduce the analysis to one or more |
| 146 | devices provided in the string passed to this option. The device identifiers |
| 147 | are the major and minor number of each device, and each device identifier is |
| 148 | separated by a colon (:). A valid specifier for devices 8,0 and 8,8 would then |
| 149 | be: \fI8,0:8,8\fR. |
| 150 | .RE |
| 151 | |
| 152 | .B \-e <\fIexe,...\fR> |
| 153 | .br |
| 154 | .B \-\-exes=<\fIexe,...\fR> |
| 155 | .RS 4 |
| 156 | The \-e option supplies the list of executables that will have I/Os |
| 157 | analysed. |
| 158 | .RE |
| 159 | |
| 160 | .B \-h |
| 161 | .br |
| 162 | .B \-\-help |
| 163 | .RS 4 |
| 164 | Shows 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 |
| 171 | Specifies the input file to analyse. This should be a trace file produced |
| 172 | by \fIblktrace\fR (8). |
| 173 | .RE |
| 174 | |
| 175 | .B \-I <\fIoutput name\fR> |
| 176 | .br |
| 177 | .B \-\-iostat=<\fIoutput name\fR> |
| 178 | .RS 4 |
| 179 | The \-I option directs btt to output iostat\-like data to the specified |
| 180 | file. Refer to the iostat (sysstat) documentation for details on the |
| 181 | data columns. |
| 182 | .RE |
| 183 | |
| 184 | .B \-l <\fIoutput name\fR> |
| 185 | .br |
| 186 | .B \-\-d2c\-latencies=<\fIoutput name\fR> |
| 187 | .RS 4 |
| 188 | The \-l option allows one to output per\-IO D2C latencies |
| 189 | respectively. The supplied argument provides the basis for the output |
| 190 | name for each device. |
| 191 | .RE |
| 192 | |
| 193 | .B \-L <\fIfreq\fR> |
| 194 | .br |
| 195 | .B \-\-periodic\-latencies=<\fIfreq\fR> |
| 196 | .RS 4 |
| 197 | The \-L option allows one to output periodic latency information for both |
| 198 | Q2C and D2C latencies. The frequency specified will regulate how often |
| 199 | an 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 |
| 206 | The \-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 |
| 214 | Specifies 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 |
| 221 | The \-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 |
| 229 | The \-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 |
| 231 | time 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 |
| 238 | The \-q option allows one to output per\-IO Q2C latencies |
| 239 | respectively. The supplied argument provides the basis for the output |
| 240 | name 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 |
| 247 | The \-Q option allows one to output data files showing the time stamp |
| 248 | and 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 |
| 255 | Ignore remap traces; older kernels did not implement the full remap |
| 256 | PDU. |
| 257 | .RE |
| 258 | |
| 259 | .B \-s <\fIoutput name\fR> |
| 260 | .br |
| 261 | .B \-\-seeks=<\fIoutput name\fR> |
| 262 | .RS 4 |
| 263 | The \-s option instructs btt to output seek data, the argument provided |
| 264 | is the basis for file names output. There are two files per device, |
| 265 | read seeks and write seeks. |
| 266 | .RE |
| 267 | |
| 268 | .B \-S <\fIinterval\fR> |
| 269 | .br |
| 270 | .B \-\-iostat\-interval=<\fIinterval\fR> |
| 271 | .RS 4 |
| 272 | The \-S option specifies the interval to use between data |
| 273 | output, 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 |
| 284 | The \-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, |
| 287 | analysis will occur for all traces after the time specified. Similarly, |
| 288 | if 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 |
| 295 | This option instructs \fBbtt\fR to generate a data file containing histogram |
| 296 | information for unplug traces on a per device basis. It shows how many |
| 297 | times an unplug was hit with a specified number of IOs released. There are 21 |
| 298 | output values into the file, as follows: |
| 299 | |
| 300 | .RS 4 |
| 301 | a value of 0 represents 0..4 counts |
| 302 | .br |
| 303 | a value of 1 represents 5..9 counts |
| 304 | .br |
| 305 | a value of 2 represents 10..14 counts |
| 306 | .br |
| 307 | etc, until |
| 308 | .br |
| 309 | a value of 20 represents 100+ counts |
| 310 | .br |
| 311 | .RE |
| 312 | |
| 313 | The file name(s) generated use the text string passed as an argument for |
| 314 | the prefix, followed by the device identifier in \fImajor,minor\fR |
| 315 | form, with a \fI.dat\fR extension. For example, with \fI\-u |
| 316 | up_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 |
| 323 | Shows the version of btt. |
| 324 | .RE |
| 325 | |
| 326 | .B \-v |
| 327 | .br |
| 328 | .B \-\-verbose |
| 329 | .RS 4 |
| 330 | Requests 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 |
| 337 | The \-z option allows one to output per\-IO Q2D latencies |
| 338 | respectively. The supplied argument provides the basis for the output |
| 339 | name for each device. |
| 340 | .RE |
| 341 | |
| 342 | |
| 343 | .SH AUTHORS |
| 344 | \fIbtt\fR was written by Alan D. Brunelle. This man page was created |
| 345 | from the \fIblktrace\fR documentation by Bas Zoetekouw. |
| 346 | |
| 347 | |
| 348 | .SH "REPORTING BUGS" |
| 349 | Report bugs to <linux\-btrace@vger.kernel.org> |
| 350 | |
| 351 | .SH COPYRIGHT |
| 352 | Copyright \(co 2006 Jens Axboe, Alan D. Brunelle and Nathan Scott. |
| 353 | .br |
| 354 | This is free software. You may redistribute copies of it under the terms of |
| 355 | the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. |
| 356 | There is NO WARRANTY, to the extent permitted by law. |
| 357 | .br |
| 358 | This manual page was created for Debian by Bas Zoetekouw. It was derived from |
| 359 | the documentation provided by the authors and it may be used, distributed and |
| 360 | modified under the terms of the GNU General Public License, version 2. |
| 361 | .br |
| 362 | On 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" |
| 366 | The btt Users Guide, which can be found in /usr/share/doc/blktrace/btt.pdf |
| 367 | .br |
| 368 | bno_plot (1), blktrace (8), blkparse (1), verify_blkparse (1), blkrawverify (1), btt (1) |
| 369 | |