From a75b2755847766509ade9acca0b043c3152eacff Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Sun, 13 Feb 2011 21:35:36 -0800 Subject: [PATCH] More benchmark changes. --- microbench/run2.sh | 4 ++-- microbench/setup/prepare-benchmark | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.20.1