[PATCH] btt: seek additions
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Thu, 14 Sep 2006 23:53:19 +0000 (01:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Sep 2006 23:53:19 +0000 (01:53 +0200)
commit5225e7882fcf560afe419c49e03d6fd1ead60eb1
tree39c379f20dc2e3dba4c121642cabcf261a4a7da9
parentb8801569f7d26e8bb730a47d2e4dd89c1457bcad
[PATCH] btt: seek additions

Added seek analysis to btt:

==================== Device Seek Information ====================

       DEV |          NSEEKS            MEAN          MEDIAN | MODE
---------- | --------------- --------------- --------------- | ---------------
 (  8, 16) |           15573      10297802.6               0 | 0(10710)

Shows the:
- Device (major, minor)

- Number of seeks (IOs issued to driver)

- Average (mean) of sector differences IO-to-IO

- Median seek (sector difference)

- Mode(s) - showing the mode and the number of times it occurred, thus in
  this example we see 68.8% of the "seeks" were contiguous (or overlapping).

Also added in the ability to dump all read and write seek values:

[ -s <output name> | --seeks=<output name> ]

Will create files with the name:

seek_<mjr,mnr>_[rw].dat

like:

seek_008,016_r.dat
seek_008,016_w.dat

Which contain relative sector offsets for reads and writes respectively.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
btt/Makefile
btt/args.c
btt/bt_timeline.c
btt/devs.c
btt/globals.h
btt/output.c
btt/seek.c [new file with mode: 0644]
btt/trace.c