projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spread test files for mixedbench across multiple subdirectories.
[bluesky.git]
/
microbench
/
setup
/
prepare-benchmark
diff --git
a/microbench/setup/prepare-benchmark
b/microbench/setup/prepare-benchmark
index
0102705
..
bb6907e
100755
(executable)
--- a/
microbench/setup/prepare-benchmark
+++ b/
microbench/setup/prepare-benchmark
@@
-15,6
+15,7
@@
BENCH_THREADS=8
BENCH_DURATION=120
BENCH_OPS=100
BENCH_INTERVALS=4
BENCH_DURATION=120
BENCH_OPS=100
BENCH_INTERVALS=4
+BENCH_DIRSIZE=256
# Export any environment variables specified on the command line
for e in "$@"; do
# Export any environment variables specified on the command line
for e in "$@"; do
@@
-33,10
+34,15
@@
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
for t in $(seq 0 $(($BENCH_THREADS - 1))); do
mkdir t$t
for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do
- dd if=/dev/zero of=t$t/$i bs=$BENCH_FILESIZE count=1
+ n1=$(($i / $BENCH_DIRSIZE))
+ n2=$(($i % $BENCH_DIRSIZE))
+ mkdir t$t/$n1
+ dd if=/dev/zero of=t$t/$n1/$n2 bs=$BENCH_FILESIZE count=1
done
done
done
done
+find -type f -exec sha1sum '{}' \;
+
popd >/dev/null
umount -f $MNTDIR
popd >/dev/null
umount -f $MNTDIR