From: Michael Vrable Date: Mon, 14 Feb 2011 05:35:36 +0000 (-0800) Subject: More benchmark changes. X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=commitdiff_plain;h=a75b2755847766509ade9acca0b043c3152eacff More benchmark changes. --- diff --git a/microbench/run2.sh b/microbench/run2.sh index 8f63714..04f685b 100755 --- a/microbench/run2.sh +++ b/microbench/run2.sh @@ -30,11 +30,11 @@ BENCH_WRITERATIO=0.0 BENCH_THREADS=4 BENCH_DURATION=120 BENCH_INTERVALS=10 -BENCH_DIRSIZE=256 +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 256 512 1024 2048; do +for size in 128 512 2048; do for filesize in 4 1024; do BENCH_FILESIZE=$(($filesize * 1024)) BENCH_FILECOUNT=$(($size * 1024 / $filesize / $BENCH_THREADS)) diff --git a/microbench/setup/prepare-benchmark b/microbench/setup/prepare-benchmark index bb6907e..3d2e350 100755 --- a/microbench/setup/prepare-benchmark +++ b/microbench/setup/prepare-benchmark @@ -32,11 +32,10 @@ mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR pushd $MNTDIR >/dev/null for t in $(seq 0 $(($BENCH_THREADS - 1))); do - mkdir t$t for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do n1=$(($i / $BENCH_DIRSIZE)) n2=$(($i % $BENCH_DIRSIZE)) - mkdir t$t/$n1 + mkdir -p t$t/$n1 dd if=/dev/zero of=t$t/$n1/$n2 bs=$BENCH_FILESIZE count=1 done done