#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 4 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
. /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
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
#!/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