I find varying the block size *very* interesting :)
James
--
Miscellaneous Engineer --- IBM Netfinity Performance Development
--- tiobench.sh.orig Mon Nov 29 17:53:16 1999
+++ tiobench.sh Mon Nov 29 18:04:14 1999
@@ -8,13 +8,14 @@
exit 1;
fi
-if [ $# != 2 ] ; then
- echo "Usage: tiobench <DataSetSizeInMegs> <TestDirectory>"
- exit;
+if [ $# -lt 2 -o $# -gt 3 ]; then
+ echo "Usage: $0 <DataSetSizeInMegs> <TestDirectory> [<BlockSizeInBytes>]"
+ exit;
fi
size=$1
dir=$2
+block=${3:-4096}
datestring=`date +%Y%m%d%H%M%S`
for i in 1 2 4 8 ; do
@@ -22,7 +23,7 @@
let tseeks=4000/$i
ofile=tiob$datestring.$i.txt
echo -n "Testing with $i threads..."
- $TIOTEST -t $i -f $tsize -s $tseeks -d $dir >$ofile
+ $TIOTEST -t $i -f $tsize -s $tseeks -b $block -d $dir >$ofile
echo "Done"
done