diff --git a/doFioLoopRbd.sh b/doFioLoopRbd.sh index 195ca5466ef980dae58e367bef407f7f5da101eb..edf08fe70ce5c5910dd10426da71a9a83406795b 100755 --- a/doFioLoopRbd.sh +++ b/doFioLoopRbd.sh @@ -1,6 +1,6 @@ -export RUNTIME=240 -export thePause=20 -export theSmlPause=5 +export RUNTIME=200 +export thePause=15 +export theSmlPause=3 export subDir=$1 if [ ! -d $PWD/$subDir ]; then echo "La directory $subDir non esiste, esco." @@ -12,7 +12,7 @@ fi for iodepth in 1 2 128 64 32 8 4 256 16 512 ; do # for poolname in testFulvioSsd testFulvio.1 testFulvio.3; do - for poolname in testFulvio.1 ; do + for poolname in testFulvio.1 testFulvio.2 ; do export POOLNAME=${poolname} export RBDNAME=testFio export IODEPTH=${iodepth} @@ -33,10 +33,10 @@ for iodepth in 1 2 128 64 32 8 4 256 16 512 ; do export fileSuff=${POOLNAME}_${RBDNAME}_${TESTTYPE}_i${IODEPTH}_n${NUMJOBS}_b${BLOCKSIZE} if [ ! -e ${subDir}/rbd_${fileSuff}.log ]; then cat rbd_fio_template.txt | sed -e "s/POOLNAME/$POOLNAME/" -e "s/RBDNAME/$RBDNAME/" -e "s/IODEPTH/$IODEPTH/" -e "s/NUMJOBS/$NUMJOBS/" -e "s/BLOCKSIZE/$BLOCKSIZE/" -e "s/RUNTIME/$RUNTIME/" -e "s/TESTTYPE/$TESTTYPE/" > ${subDir}/rbd_${fileSuff}.txt - sync ; sleep 2 + sync ; echo 3 > /proc/sys/vm/drop_caches ; sleep 2 echo "Executing: fio --output=${subDir}/rbd_${fileSuff}.log ${subDir}/rbd_${fileSuff}.txt" fio --output=${subDir}/rbd_${fileSuff}.log ${subDir}/rbd_${fileSuff}.txt - sync ; echo "done rbd_${fileSuff}.txt" + sync ; echo 3 > /proc/sys/vm/drop_caches ; echo "done rbd_${fileSuff}.txt" echo "Sleep $thePause at `date`" ; sleep $thePause else echo "SKIPPED, sleep $theSmlPause at `date`" ; sleep $theSmlPause diff --git a/rbd_fio_template.txt b/rbd_fio_template.txt index ff1f5c27af9796ab67068ad134bc42eb634b47c6..6e4607f2c928c2e1e1ab5e09617e8ff1afc53c2e 100644 --- a/rbd_fio_template.txt +++ b/rbd_fio_template.txt @@ -6,7 +6,9 @@ group_reporting clientname=admin pool=POOLNAME rbdname=RBDNAME -invalidate=0 # mandatory +#invalidate=0 # old, as per https://telekomcloud.github.io/ceph/2014/02/26/ceph-performance-analysis_fio_rbd.html +invalidate=1 +do_verify=0 bs=BLOCKSIZE direct=1 time_based=1