Major revamping (ver 2.0)
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Mon, 10 Sep 2007 16:37:49 +0000 (18:37 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 10 Sep 2007 16:37:49 +0000 (18:37 +0200)
commit4c48f14ea8ae2fae86811ac4dc1d72ad9bb601c2
tree97a01448fa090ed0aacf979e640bf77e40b637bf
parenta5981e2e795319502cc8dda629482928f3b7b204
Major revamping (ver 2.0)

After a lot of fighting with maintaining a tree-styled design (each trace
having it's own node), it was just getting too cumbersome to work in all
circumstances. Taking a clue from blkparse itself, I decided to just keep
track of IOs at queue time, and updating fields based upon later traces.

The attached (large) patch works much faster, handles larger test cases
with less failures, and is managing some pretty large jobs I'm working on
(large Oracle-based DB analysis - 32-way box w/ lots of storage).

I've also added a Q2Q seek distance feature - it's come in handy when
comparing results of IO scheduler choice: We can see what the incoming IO
seek distances are (at queue time), and then see how the scheduler itself
manages things (via merges & sorting) by looking at D2D seek distances
generated.

As noted in the subject, I arbitrarily bumped this to version 2.00 as the
innards are so different. The documentation (btt/doc/btt.tex) has been
updated to reflect some minor output changes. I also fixed a bug dealing
with process name notification: there was a problem that if a new PID came
up with a name that was previously seen, btt wouldn't keep track of it
right. [When running with Oracle, a lot of processes have the same name but
different PIDs of course.]

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 files changed:
btt/bt_timeline.c
btt/devs.c
btt/doc/btt.tex
btt/doc/sample-btt-output.tex [new file with mode: 0644]
btt/globals.h
btt/inlines.h
btt/iostat.c
btt/output.c
btt/proc.c
btt/seek.c
btt/trace.c
btt/trace_complete.c
btt/trace_im.c
btt/trace_issue.c
btt/trace_queue.c
btt/trace_remap.c
btt/trace_requeue.c