More reworking of microbenchmark handling of reads/writes and file layout.
[bluesky.git] / microbench / setup / prepare-benchmark
index 3d2e350..eb5c7d5 100755 (executable)
@@ -31,13 +31,11 @@ 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
-    for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do
-        n1=$(($i / $BENCH_DIRSIZE))
-        n2=$(($i % $BENCH_DIRSIZE))
-        mkdir -p t$t/$n1
-        dd if=/dev/zero of=t$t/$n1/$n2 bs=$BENCH_FILESIZE count=1
-    done
+mkdir $(seq 0 $(($BENCH_FILECOUNT / $BENCH_DIRSIZE)))
+for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do
+    n1=$(($i / $BENCH_DIRSIZE))
+    n2=$(($i % $BENCH_DIRSIZE))
+    dd if=/dev/zero of=$n1/$n2 bs=$BENCH_FILESIZE count=1
 done
 
 find -type f -exec sha1sum '{}' \;