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))
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