X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=microbench%2Fsetup%2Frun-benchmark;h=b38ca8da89aaf03c787526b7e0a1b813b9c35a69;hb=c0202777b783b74e0c9d580f58eaa69889a6874e;hp=bf061a4a6d1665b8d3bc72f42ef073c4a009aa70;hpb=b2752c1bde79356615a2398195a16979b4570b20;p=bluesky.git diff --git a/microbench/setup/run-benchmark b/microbench/setup/run-benchmark index bf061a4..b38ca8d 100755 --- a/microbench/setup/run-benchmark +++ b/microbench/setup/run-benchmark @@ -4,16 +4,31 @@ # Defaults -SERVER=c09-45.sysnet.ucsd.edu +SERVER=vrable2.sysnet.ucsd.edu MNTDIR=/mnt/bluesky BENCH_FILESIZE=$((1 << 12)) +BENCH_BLOCKSIZE=0 BENCH_FILECOUNT=$((8)) BENCH_WRITERATIO=1.0 BENCH_THREADS=8 BENCH_DURATION=120 BENCH_OPS=100 BENCH_INTERVALS=4 +BENCH_DIRSIZE=256 +BENCH_LOCKEDMEM=$((4096 - 256)) +NFS_BLOCKSIZE=1048576 + +lock_memory() { + MEM=$1 + while [ $MEM -gt 512 ]; do + /scratch/bluesky.git/microbench/lockmem 512 & + MEM=$(($MEM - 512)) + done + if [ $MEM -gt 0 ]; then + /scratch/bluesky.git/microbench/lockmem $MEM & + fi +} # Export any environment variables specified on the command line for e in "$@"; do @@ -25,7 +40,9 @@ for e in "$@"; do done # Prepare to run the benchmark -mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR +lock_memory $BENCH_LOCKEDMEM + +mount -t nfs -o vers=3,tcp,rw,soft,intr,rsize=$NFS_BLOCKSIZE,wsize=$NFS_BLOCKSIZE $SERVER:/export $MNTDIR pushd $MNTDIR >/dev/null @@ -36,7 +53,11 @@ pushd $MNTDIR >/dev/null $BENCH_THREADS \ $BENCH_DURATION \ $BENCH_OPS \ - $BENCH_INTERVALS + $BENCH_INTERVALS \ + $BENCH_DIRSIZE \ + $BENCH_BLOCKSIZE + +pkill -TERM lockmem popd >/dev/null