3 # Use gnuplot to generate plots from fio run with -l and/or -w
5 if [ "$1"x == "x" ]; then
10 GNUPLOT=$(which gnuplot)
11 if [ ! -x $GNUPLOT ]; then
12 echo You need gnuplot installed to generate graphs
23 if [ "$PLOT_LINE"x != "x" ]; then
24 PLOT_LINE=$PLOT_LINE", "
27 PLOT_LINE=$PLOT_LINE"'$i' with lines"
30 if [ "$PLOT_LINE"x != "x" ]; then
32 echo "set title 'Bandwidth - $TITLE'; set xlabel 'time (msec)'; set ylabel 'KiB/sec'; set terminal png; set output '$TITLE-bw.png'; plot " $PLOT_LINE | $GNUPLOT -
36 for i in *slat.log; do
40 if [ "$PLOT_LINE"x != "x" ]; then
41 PLOT_LINE=$PLOT_LINE", "
44 PLOT_LINE=$PLOT_LINE"'$i' with lines"
47 if [ "$PLOT_LINE"x != "x" ]; then
48 echo Making slat logs $PLOT_LINE
49 echo "set title 'Submission latency - $TITLE'; set xlabel 'time (msec)'; set ylabel 'latency (msec)'; set terminal png; set output '$TITLE-slat.png'; plot " $PLOT_LINE | $GNUPLOT -
53 for i in *clat.log; do
57 if [ "$PLOT_LINE"x != "x" ]; then
58 PLOT_LINE=$PLOT_LINE", "
61 PLOT_LINE=$PLOT_LINE"'$i' with lines"
64 if [ "$PLOT_LINE"x != "x" ]; then
65 echo Making clat logs $PLOT_LINE
66 echo "set title 'Completion latency - $TITLE'; set xlabel 'time (msec)'; set ylabel 'latency (msec)'; set terminal png; set output '$TITLE-clat.png'; plot " $PLOT_LINE | $GNUPLOT -