re-run print size test several times to minimize possible disk cache impact

This commit is contained in:
George Danchev 2011-07-09 10:17:29 +00:00
parent 4bf2d58585
commit 3a435baca3

View File

@ -41,20 +41,30 @@ do
done
printf "done.\n"
# Disk cache might play dirty games, so re-run these several times?
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
#
if [ -x ${RELENG_XORRISO} ]; then
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}\n"
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}
done
fi
#
if [ -x ${RELENG_GENISOIMAGE} ]; then
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}\n"
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
done
fi
#
if [ -x ${RELENG_MKISOFS} ]; then
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}\n"
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}
done
fi
#