This ensures I/O is synced before each test. Previous patch
http://review.whamcloud.com/14143 works only with the Lustre test
framework. This will ensure I/O is always sysnced.
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ib19a9e4afd8ca83deceb78fe8fdb4d231da0bc40
Reviewed-on: http://review.whamcloud.com/16942
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
# run tests
for test in ${tests[@]}; do
- # Sync all outstanding data
- for host in ${ost_hosts[@]}; do
- remote_shell $host \
- "lctl set_param -n osd*.*OST*.force_sync 1"
- done
-
declare -a pidarray
for host in ${unique_hosts[@]}; do
+ remote_shell $host \
+ "lctl set_param -n osd*.*OST*.force_sync 1"
echo "starting run for test: $test rsz: $rsz " \
"threads: $thr objects: $nobj" >> ${vmstatf}_${host}
done