Permalink
Browse files

fix mismatch of the time variables

  • Loading branch information...
1 parent 21e34f7 commit 7ca74c44ed31aa8c169c919897db71c5e9629b6d Ming committed Dec 14, 2012
@@ -1,12 +1,12 @@
-set size 2, 1.8
+set size 2, 2
set grid ytics
set terminal postscript eps noenhanced color "Times-Roman,40"
-set output "ratio_thput_predict.eps"
+set output "ratio_ops_predict.eps"
-set yrange [0:18]
-set key
+set yrange [0:900]
+set key left
set xlabel "Ratio"
-set ylabel "Throughput (mb/sec)"
+set ylabel "Throughput (ops/sec)"
-plot 'mris_ratio_thput.dat' using 1:6 w points pt 20 title "benchmarked Hybrid", 1000000.0*(x*8 + 128)/(1024*(1482 * x + 37599)) lw 3 title "predicted Hybrid", '' using 1:3 w points pt 4 title "benchmarked SSD", 1000000.0*(x*8 + 128)/(1024*(1482 * x + 13238)) lw 3 title "predicted SSD", '' using 1:9 w points pt 13 title "benchmarked SATA", 1000000.0*(x*8 + 128)/(1024*(13238 * x + 37599)) lw 3 lc rgb "black" title "predicted SATA"
+plot 'mris_ratio_ops.dat' using 1:6 w points pt 20 title "benchmarked Hybrid", 1000000.0*(x + 1)/((1482 * x + 37599)) lw 3 title "predicted Hybrid", '' using 1:3 w points pt 13 title "benchmarked SSD", 1000000.0*(x + 1)/((1482 * x + 6542)) lw 3 title "modeled SSD", '' using 1:9 w points lc rgb "#483D8B" pt 4 title "benchmarked SATA", 1000000.0*(x + 1)/((13238 * x + 37599)) lw 3 lc rgb "gray" title "modeled SATA"
@@ -88,7 +88,7 @@ EOF
}
plot ops/sec mris_ratio_ops left
-plot mb/sec mris_ratio_thput right
+plot mb/sec mris_ratio_mb right
plot_iostat mb/sec mris_ratio_iostat_thput
plot_iostat ops/sec mris_ratio_iostat_ops

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -19,34 +19,65 @@ ulimit -H -c 0 -- # disable core dump
hash -r # clear the command path hash
tsf=1482
-tsh=6542
-tlf=13238
+tlf=6542
+tsh=13238
tlh=37599
-cat > plot.p <<-EOF
-set size 2, 1.8
-set grid ytics
-
-set terminal postscript eps noenhanced color "Times-Roman,40"
-set output "ratio_thput_predict.eps"
-
-set yrange [0:18]
-set key
-set xlabel "Ratio"
-set ylabel "Throughput (mb/sec)"
-
-plot 'mris_ratio_thput.dat' using 1:6 w points pt 20 title "benchmarked Hybrid", \
- 1000000.0*(x*8 + 128)/(1024*($tsf * x + $tlh)) lw 3 title "predicted Hybrid", \
- '' using 1:3 w points pt 4 title "benchmarked SSD", \
- 1000000.0*(x*8 + 128)/(1024*($tsf * x + $tlf)) lw 3 title "predicted SSD", \
- '' using 1:9 w points pt 13 title "benchmarked SATA", \
- 1000000.0*(x*8 + 128)/(1024*($tlf * x + $tlh)) lw 3 lc rgb "black" title "predicted SATA"
-EOF
-
-gnuplot plot.p
-
-if uname -a | grep -q Linux; then
- evince ratio_thput_predict.eps
-elif uname -a | grep -q Mac; then
- open ratio_thput_predict.eps
-fi
+function show() {
+ if uname -a | grep -q Linux; then
+ evince $@
+ elif uname -a | grep -q Mac; then
+ open $@
+ fi
+}
+
+function plot_mb() {
+ cat > plot.p <<-EOF
+ set size 2, 1.8
+ set grid ytics
+
+ set terminal postscript eps noenhanced color "Times-Roman,40"
+ set output "ratio_thput_predict.eps"
+
+ set yrange [0:18]
+ set key
+ set xlabel "Ratio"
+ set ylabel "Throughput (mb/sec)"
+
+ plot 'mris_ratio_mb.dat' using 1:6 w points pt 20 title "benchmarked Hybrid", \
+ 1000000.0*(x*8 + 128)/(1024*($tsf * x + $tlh)) lw 3 title "predicted Hybrid", \
+ '' using 1:3 w points pt 13 title "benchmarked SSD", \
+ 1000000.0*(x*8 + 128)/(1024*($tsf * x + $tlf)) lw 3 title "predicted SSD", \
+ '' using 1:9 w points lc rgb "#483D8B" pt 4 title "benchmarked SATA", \
+ 1000000.0*(x*8 + 128)/(1024*($tsh * x + $tlh)) lw 3 lc rgb "gray" title "predicted SATA"
+ EOF
+ gnuplot plot.p
+ show ratio_thput_predict.eps
+}
+
+function plot_ops() {
+ cat > plot.p <<-EOF
+ set size 2, 2
+ set grid ytics
+
+ set terminal postscript eps noenhanced color "Times-Roman,40"
+ set output "ratio_ops_predict.eps"
+
+ set yrange [0:900]
+ set key left
+ set xlabel "Ratio"
+ set ylabel "Throughput (ops/sec)"
+
+ plot 'mris_ratio_ops.dat' using 1:6 w points pt 20 title "benchmarked Hybrid", \
+ 1000000.0*(x + 1)/(($tsf * x + $tlh)) lw 3 title "predicted Hybrid", \
+ '' using 1:3 w points pt 13 title "benchmarked SSD", \
+ 1000000.0*(x + 1)/(($tsf * x + $tlf)) lw 3 title "modeled SSD", \
+ '' using 1:9 w points lc rgb "#483D8B" pt 4 title "benchmarked SATA", \
+ 1000000.0*(x + 1)/(($tsh * x + $tlh)) lw 3 lc rgb "gray" title "modeled SATA"
+ EOF
+ gnuplot plot.p
+ show ratio_ops_predict.eps
+}
+
+plot_ops
+#plot_mb
@@ -104,8 +104,8 @@ function parse_ops() {
}
function parse_thput() {
- echo -e "#ratio\tsetup\tmb/s\tstddev" > mris_ratio_thput.dat
- parse_column 5 mris_ratio.dat >> mris_ratio_thput.dat
+ echo -e "#ratio\tsetup\tmb/s\tstddev" > mris_ratio_mb.dat
+ parse_column 5 mris_ratio.dat >> mris_ratio_mb.dat
}
function parse_iostat_thput() {
Oops, something went wrong.

0 comments on commit 7ca74c4

Please sign in to comment.