3 # Use gnuplot to generate plots from fio run with -l and/or -w
5 if [ "$1"x == "x" ]; then
17 if [ "$PLOT_LINE"x != "x" ]; then
18 PLOT_LINE=$PLOT_LINE", "
21 PLOT_LINE=$PLOT_LINE"'$i' with lines"
24 if [ "$PLOT_LINE"x != "x" ]; then
26 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 -
30 for i in *slat.log; do
34 if [ "$PLOT_LINE"x != "x" ]; then
35 PLOT_LINE=$PLOT_LINE", "
38 PLOT_LINE=$PLOT_LINE"'$i' with lines"
41 if [ "$PLOT_LINE"x != "x" ]; then
42 echo Making slat logs $PLOT_LINE
43 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 -
47 for i in *clat.log; do
51 if [ "$PLOT_LINE"x != "x" ]; then
52 PLOT_LINE=$PLOT_LINE", "
55 PLOT_LINE=$PLOT_LINE"'$i' with lines"
58 if [ "$PLOT_LINE"x != "x" ]; then
59 echo Making clat logs $PLOT_LINE
60 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 -