Merge branch 'master' of ssh://git.kernel.dk/data/git/blktrace
[blktrace.git] / btt / README
CommitLineData
63eba147
JA
1blktrace Timeline
2-----------------
3
4Alan D. Brunelle (initial version)
5
6Usage
7-----
8
80c27cbe
ADB
9Usage: btt
10 [ -d <seconds> | --range-delta=<seconds> ]
11 [ -D <dev;...> | --devices=<dev;...> ]
12 [ -e <exe,...> | --exes=<exe,...> ]
13 [ -h | --help ]
14 [ -i <input name> | --input-file=<input name> ]
15 [ -I <output name> | --iostat=<output name> ]
b2ecdd0f 16 [ -l <output name> | --d2c-latencies=<output name> ]
80c27cbe
ADB
17 [ -M <dev map> | --dev-maps=<dev map>
18 [ -o <output name> | --output-file=<output name> ]
095181f2 19 [ -p <output name> | --per-io-dump=<output name> ]
b2ecdd0f 20 [ -q <output name> | --q2c-latencies=<output name> ]
80c27cbe
ADB
21 [ -s <output name> | --seeks=<output name> ]
22 [ -S <interval> | --iostat-interval=<interval> ]
001b2633
JA
23 [ -t <sec> | --time-start=<sec> ]
24 [ -T <sec> | --time-end=<sec> ]
80c27cbe
ADB
25 [ -V | --version ]
26 [ -v | --verbose ]
63eba147 27
80c27cbe 28You are required to specify an input file (-i)
63eba147 29
80c27cbe 30The -d option allows you to specify the granularity which determines
63eba147
JA
31"activity" with regard to the .dat files -- this specific the time
32(in seconds) that must elapse without a particular event occuring to
33signify inactivity. The larger the number, the fewer ranges output --
34the default is 0.1 seconds.
35
80c27cbe 36The -D option supplies the devices which should be looked at when
63eba147
JA
37analyzing the input. This is a ":" separated list of devices, devices are
38specified by a mjr,mnr tuple (e.g.: -D "8,0:8,8" specifies two devices
39with major 8 and minor 0 and 8 respectively).
40
80c27cbe 41The -e option supplies the list of executables that will have I/Os
63eba147
JA
42analyzed.
43
80c27cbe
ADB
44The -I option directs btt to output iostat-like data to the specified
45file. Refer to the iostat (sysstat) documentation for details on the
46data columns. The -S option specifies the interval to use between data
47output, it defaults to once per second.
48
b2ecdd0f
ADB
49The -l and -q options allow one to output per-IO D2C and Q2C latencies
50respectively. The supplied argument provides the basis for the output
51name for each device.
52
80c27cbe 53The -M option takes in a file generated by the provided script
63eba147
JA
54(gen_disk_info.py), and allows for better output of device names.
55
095181f2
JA
56The -p option will generate a file that contains a list of all IO
57"sequences" - showing the parts of each IO (Q, A, I/M, D, & C).
58
80c27cbe
ADB
59The -s option instructs btt to output seek data, the argument provided
60is the basis for file names output. There are two files per device,
61read seeks and write seeks.
62
001b2633
JA
63The -t/-T options allow one to set a start and/or end time for analyzing
64- analyzing will only be done for traces after -t's argument and before
65-T's argument. (-t and -T are optional, so if you specify just -t,
66analysis will occur for all traces after the time specified. Similarly,
67if only -T is specified, analysis stops after -T's seconds.)
68
63eba147
JA
69Overview
70--------
71
72btt will take in binary dump data from blkparse, and analyze the events,
73producing a series of output from the analysis. It will also build .dat
74files containing "range data" -- showing things like Q activity (periods
75of time while Q events are being produced), C activity (likewise for
76command completions), and etc.
77
78Resources
79---------
80
81vger hosts a mailing list dedicated to btrace discussion and development.
82The list is called linux-btrace@vger.kernel.org, subscribe by sending
83a mail to majordomo@vger.kernel.org with 'subscribe linux-btrace' in
84the mail body.
85
80c27cbe 862006-09_18, Alan D. Brunelle <alan.brunelle@hp.com>