From: Michael Vrable Date: Tue, 8 Mar 2011 23:28:49 +0000 (-0800) Subject: Infrastructure to generate PDF figures for the paper X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=commitdiff_plain;h=2f91fb1d2ff6261ec1b95993bda7db67d31b85b9 Infrastructure to generate PDF figures for the paper --- diff --git a/results/figures/.gitignore b/results/figures/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/results/figures/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/results/figures/build.sh b/results/figures/build.sh new file mode 100755 index 0000000..a637e09 --- /dev/null +++ b/results/figures/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +for f in *.gnuplot; do + [ "$f" = "common.gnuplot" ] && continue + echo "gnuplot: $f" + gnuplot $f +done + +for f in *.eps; do + echo "epstopdf: $f" + + # Strip out PDF metadata which includes identifying usernames + sed -e $'/^SDict begin/,/^end/ {\n /^ \/.*(/d\n}' \ + -e '/^%%\(Title\|CreationDate\)/d' <$f >$f.tmp + + epstopdf --noembed --outfile=${f%.eps}.pdf $f.tmp + rm $f $f.tmp +done diff --git a/results/figures/common.gnuplot b/results/figures/common.gnuplot new file mode 100644 index 0000000..6e6d7d1 --- /dev/null +++ b/results/figures/common.gnuplot @@ -0,0 +1,9 @@ +# Common plot settings for generating all paper figures. This file is included +# in each of the plot scripts. + +# Settings for experimental work: graphs are larger and in color. +set term postscript eps color dashed size 5,3.5 16 + +# Settings for camera-ready: shrink plot size and increase font size so that +# text is readable in the final paper. +#set term postscript eps dashed size 3.5,2.5 20 diff --git a/results/figures/specsample.gnuplot b/results/figures/specsample.gnuplot new file mode 100644 index 0000000..6c3bfa2 --- /dev/null +++ b/results/figures/specsample.gnuplot @@ -0,0 +1,23 @@ +load "common.gnuplot" + +OPS_WSS_SCALE=36/1024.0 + +set grid +set xlabel "Requested Operations per Second" +set x2label "Working Set Size (GB)" + +set xrange [0:1000] +set x2range [0:1000*OPS_WSS_SCALE] +set x2tics auto + +set output "specsample1.eps" +set ylabel "Achieved Operations per Second" +plot "../20110226/sfssum.20110225-native" with linespoints title "Local NFS Server", \ + "../20110307/sfssum.20110307-ec2-west2" with linespoints title "EC2 NFS Server", \ + "../20110306/sfssum.20110306-s3-west-4GB" with linespoints title "BlueSky (4 GB cache, S3-west)" + +set output "specsample2.eps" +set ylabel "Operation Latency (ms)" +plot "../20110226/sfssum.20110225-native" using 1:3 with linespoints title "Local NFS Server", \ + "../20110307/sfssum.20110307-ec2-west2" using 1:3 with linespoints title "EC2 NFS Server", \ + "../20110306/sfssum.20110306-s3-west-4GB" using 1:3 with linespoints title "BlueSky (4 GB cache, S3-west)"