Setup for the synthetic read benchmark
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 16 Mar 2011 19:54:43 +0000 (12:54 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 16 Mar 2011 19:54:43 +0000 (12:54 -0700)
microbench/run-synread.sh [new file with mode: 0755]
microbench/setup/run-synread [new file with mode: 0755]
nfs3/synreadbench.c

diff --git a/microbench/run-synread.sh b/microbench/run-synread.sh
new file mode 100755 (executable)
index 0000000..3d3d6b6
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+BASEDIR=$(dirname $(which $0))
+. $BASEDIR/run-common.sh
+
+BLUESKY_TARGET=s3:mvrable-readbench-west
+BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
+
+run_synbench() {
+    BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1
+
+    run_cmd $PROXY cleanup-proxy
+    run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 &
+    proxy_pid=$!
+    sleep 10
+
+    run_cmd $BENCHER run-specsfs
+
+    run_cmd $PROXY stop-proxy
+    echo "Waiting for proxy to stop..."
+    wait $proxy_pid
+}
+
+for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
+done
+
+run_spec s3-west-noagg sfs_bluesky
+
+BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
+run_spec s3-west-nocrypt sfs_bluesky
+
+BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1"
+run_spec s3-west-noagg-nocrypt sfs_bluesky
diff --git a/microbench/setup/run-synread b/microbench/setup/run-synread
new file mode 100755 (executable)
index 0000000..cfe4acf
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Launch the synthetic read benchmark.
+
+SYNREAD_OUTSTANDING=32
+SYNREAD_PROCS=4
+SYNREAD_SIZE=$((1 << 20))
+SYNREAD_DURATION=30
+
+# 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 /scratch/synread/$BLUESKY_RUN_NAME
+cd /scratch/synread/$BLUESKY_RUN_NAME
+for i in $(seq $SYNREAD_PROCS); do
+    /scratch/bluesky.git/nfs3/synreadbench /scratch/inodes.txt $SYNREAD_OUTSTANDING $SYNREAD_SIZE proc-$i.data &
+done
+
+sleep $SYNREAD_DURATION
+
+pkill -TERM synreadbench
index 64bc898..b055e01 100644 (file)
@@ -479,7 +479,7 @@ int main(int argc, char *argv[])
     }
 
     main_loop = g_main_loop_new(NULL, FALSE);
-    nfs_connect("niniel.sysnet.ucsd.edu");
+    nfs_connect("vrable2.sysnet.ucsd.edu");
 
     g_main_loop_run(main_loop);