iowatcher: Update the README and the --help output
authorChris Mason <chris.mason@fusionio.com>
Mon, 27 Aug 2012 22:09:57 +0000 (18:09 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 27 Aug 2012 22:09:57 +0000 (18:09 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/README
iowatcher/main.c

index dfc328a5711b16a85c1528ef257212591988dad5..09dd91d868c202480f5594de20206424f075686d 100644 (file)
@@ -1,15 +1,29 @@
 iowatcher graphs the results of a blktrace run.  It has a few different modes:
 
-* Graph the result of an existing blktrace
+       * Graph the result of an existing blktrace
 
-* Start a new blktrace
+       * Start a new blktrace
 
-* Start a new blktrace and a benchmark run
+       * Start a new blktrace and a benchmark run
+
+       * Make a movie of the IO from a given trace (only mp4 for now)
+
+Output:
+
+       iowatcher can produce either svg files or mp4 movies.  Most browsers
+       can view the svg files, or you can use rsvg-view-3 from librsvg.
+       rsvg-convert can turn the svgs into many other formats.
+
+Building:
+
+       Type make and make install.  We need ffmpeg and librsvg to make
+       movies, otherwise there are no dependencies.
 
 The basic options:
 
-       -d controls which device you are string.  You can only trace one device
-          at a time for now.  It is sent directly to blktrace
+       -d controls which device you are tracing.  You can only trace one device
+          at a time for now.  It is sent directly to blktrace, and only
+          needed when you are making a new trace.
 
        -t controls the name of the blktrace file.  iowatcher uses a dump from
           blkparse, so -t tries to guess the name of the corresponding
@@ -18,8 +32,15 @@ The basic options:
           If you want more than one trace in a given graph, you can specify
           -t more than once.
 
-       -l Sets a label for a trace file.  The labels are added in the same
-          order the trace files are added.
+       -l Sets a label in the graph for a trace file.  The labels are added in
+          the same order the trace files are added.
+
+       -m Create a movie.  This defaults to the mp4 file format, and you
+          should also use -o filename.mp4.  You can use any other filename,
+          but the end result will be an mp4.
+
+          You can use --movie=spindle or --movie=rect, which changes the
+          style of the IO mapping.
 
        -T Set a title for the graph.  This goes at the top of the image.
 
@@ -39,7 +60,8 @@ The basic options:
           than once.
 
        Choices for -O and -N are:
-          io, tput, latency, queue_depth, iops
+          io, tput, latency, queue_depth, iops, cpu-sys, cpu-io,
+          cpu-irq, cpu-user, cpu-soft
 
 Examples:
        
@@ -59,4 +81,7 @@ Examples:
        # add a title to the top.  Use /dev/sda for blktrace
        iowatcher -d /dev/sda -t trace.dump -T 'Fio Benchmark' -p 'fio some_job_file'
 
+       # Make a movie from an existing trace
+       iowatcher -t trace --movie -o trace.mp4
+
 Please email chris.mason@fusionio.com with any questions
index 90eef0faf5a36b39ca64db6537fda11b98466fa4..f2945fa05f0e64fcc968d523b86e71da66eb964a 100644 (file)
@@ -1006,7 +1006,9 @@ static void print_usage(void)
                "\t-p (--movie [=spindle|rect]): create IO animations\n"
                "\t-r (--rolling): number of seconds in the rolling averge\n"
                "\t-T (--title): graph title\n"
-               "\t-N (--no-graph): skip a single graph (io, tput, latency, queue_depth, iops)\n"
+               "\t-N (--no-graph): skip a single graph (io, tput, latency, queue_depth, \n"
+               "\t\t\tiops, cpu-sys, cpu-io, cpu-irq cpu-soft cpu-user)\n"
+               "\t-O (--only-graph): add a single graph to the output\n"
                "\t-h (--height): set the height of each graph\n"
                "\t-w (--width): set the width of each graph\n"
               );