Reduced runtime of auto_printsize and balanced xorriso versus genisoimage

master
Thomas Schmitt 11 years ago
parent 44cdc02804
commit baf61c3aee
  1. 25
      releng/auto_printsize

@ -46,26 +46,35 @@ else
fi
#
UPPER=40
DIR_UPPER=32
FILE_UPPER=10
# All must be set at this point
# TODO: work out a smarter way to quickly generate different
# types of trees (long, deep, etc)
printf "\n${SELF}: Generating sample tree in ${GEN_DATA_DIR} :\n"
for ((i1=0; i1 < ${UPPER}/4; i1++))
count=0
date
for ((i1=0; i1 < ${DIR_UPPER}/4; i1++))
do
for ((i2=0; i2 < ${UPPER}/2; i2++))
for ((i2=0; i2 < ${DIR_UPPER}/2; i2++))
do
for ((i3=0; i3 < ${UPPER}; i3++))
for ((i3=0; i3 < ${DIR_UPPER}; i3++))
do
mkdir -p ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3
touch ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3/FileOne
mkdir -p ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3
for ((i_file=0; i_file < ${FILE_UPPER}; i_file++))
do
echo -n \
> ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3/File_${i_file}
count=$((count + 1))
done
done
done
echo " $(expr '(' ${i1} + 1 ')' '*' ${UPPER} / 2 '*' ${UPPER}) " \
"files created ..."
echo " ${count} files created ..."
done
printf "done.\n"
date
du -s "${GEN_DATA_DIR}"
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"

Loading…
Cancel
Save