2015-01-23 12:25:24 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
dir=/tmp
|
|
|
|
numfiles=128
|
|
|
|
nocache=
|
|
|
|
sync=
|
|
|
|
filesize=`expr 10 \* 1048576`
|
|
|
|
|
|
|
|
while [ $# -gt 1 ] ; do
|
|
|
|
case $1 in
|
|
|
|
-d) dir=$2; shift; shift ;;
|
|
|
|
-n) numfiles=$2; shift; shift ;;
|
|
|
|
-D) nocache="-D"; shift ;;
|
|
|
|
-s) sync="-s"; shift;;
|
|
|
|
-S) filesize=$2; shift; shift ;;
|
|
|
|
*) break ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
rm -r $dir/sftest
|
|
|
|
|
|
|
|
for bs in $@ ; do
|
|
|
|
echo "Blocksize $bs"
|
2015-01-23 16:17:35 -05:00
|
|
|
./sftest $sync $nocache -b $bs -q -d $dir -n $numfiles -S $filesize
|
2015-01-23 12:25:24 -05:00
|
|
|
rm -r $dir/sftest
|
|
|
|
done
|