From 89723c70784d4d653168507d5db59a1b17d08eae Mon Sep 17 00:00:00 2001 From: Fulvio Galeazzi <fulvio.galeazzi@garr.it> Date: Fri, 13 Apr 2018 09:02:17 +0200 Subject: [PATCH] 2018-04-13: FG; Latest settings. --- doFioLoopRbd.sh | 12 ++++++------ rbd_fio_template.txt | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/doFioLoopRbd.sh b/doFioLoopRbd.sh index 195ca54..edf08fe 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 ff1f5c2..6e4607f 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 -- GitLab