Add setup script for starting the proxy for benchmarking.
authorroot <root@c09-45.sysnet.ucsd.edu>
Wed, 9 Feb 2011 23:23:36 +0000 (15:23 -0800)
committerroot <root@c09-45.sysnet.ucsd.edu>
Wed, 9 Feb 2011 23:23:36 +0000 (15:23 -0800)
microbench/setup/run-proxy [new file with mode: 0755]

diff --git a/microbench/setup/run-proxy b/microbench/setup/run-proxy
new file mode 100755 (executable)
index 0000000..928fcee
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Start up the NFS server.
+
+# Defaults
+. /scratch/aws-keys
+export BLUESKY_CACHE_SIZE=$((512 * 1024))
+export BLUESKY_TARGET=s3
+
+# Export any environment variables specified on the command line
+for e in "$@"; do
+    echo "$e" 1>&2
+    if echo "$e" | grep = >/dev/null; then
+        eval "$e"
+        export ${e%=*}
+    fi
+done
+
+mkdir /export/journal 2>/dev/null
+(cd /export; /scratch/bluesky.git/nfs3/nfsproxy)