Add a "native" target to run the kernel NFS server.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 14 Feb 2011 05:57:38 +0000 (21:57 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 14 Feb 2011 05:57:38 +0000 (21:57 -0800)
microbench/run2.sh
microbench/setup/cleanup-proxy
microbench/setup/run-proxy
microbench/setup/stop-proxy

index 04f685b..fbfbc25 100755 (executable)
@@ -34,8 +34,8 @@ BENCH_DIRSIZE=128
 
 #for size in 128 256 512 768 1024 1536 2048; do
 #    for filesize in 4 32 256 2048; do
-for size in 128 512 2048; do
-    for filesize in 1024; do
+for size in 128 512 1024 2048; do
+    for filesize in 1024; do
         BENCH_FILESIZE=$(($filesize * 1024))
         BENCH_FILECOUNT=$(($size * 1024 / $filesize / $BENCH_THREADS))
         PREFIX=$BLUESKY_TARGET-$BENCH_WRITERATIO-${size}M-${filesize}k
index 80fd963..e88e7fe 100755 (executable)
@@ -4,5 +4,22 @@
 
 . /scratch/aws-keys
 
-rm -rf /export/journal
-/scratch/bluesky.git/microbench/setup/s3-cleanup.py
+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
+
+if [ "$BLUESKY_TARGET" = "native" ]; then
+    /etc/init.d/nfs-kernel-server stop
+    umount /export
+    mkfs.ext3 /dev/sda10
+    mount /export
+else
+    rm -rf /export/journal
+    /scratch/bluesky.git/microbench/setup/s3-cleanup.py
+fi
index 928fcee..80ec5be 100755 (executable)
@@ -16,5 +16,9 @@ for e in "$@"; do
     fi
 done
 
-mkdir /export/journal 2>/dev/null
-(cd /export; /scratch/bluesky.git/nfs3/nfsproxy)
+if [ "$BLUESKY_TARGET" = "native" ]; then
+    /etc/init.d/nfs-kernel-server start
+else
+    mkdir /export/journal 2>/dev/null
+    (cd /export; /scratch/bluesky.git/nfs3/nfsproxy)
+fi
index 4d506f8..482a7e4 100755 (executable)
@@ -1,3 +1,17 @@
 #!/bin/bash
 
-pkill -INT nfsproxy
+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
+
+if [ "$BLUESKY_TARGET" = "native" ]; then
+    /etc/init.d/nfs-kernel-server stop
+else
+    pkill -INT nfsproxy
+fi