From 78ebe02c41b89dae77cfd16320c3d4696f3e3d30 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 23 Mar 2015 12:44:22 -0400 Subject: [PATCH] LU-6385 tests: Sync OSTs between tests in obdfilter-survey osd-ldiskfs and osd-zfs operate differently with regards to writeback cache. This adds a force sync between test runs so that a test list of "write read" will have all writes finished before reads starts for both ldiskfs and zfs. Signed-off-by: Nathaniel Clark Change-Id: I3414a595220d9eb65145f8246ed5e243c112b866 Reviewed-on: http://review.whamcloud.com/14143 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre-iokit/obdfilter-survey/obdfilter-survey | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 23e8189..2b8fcd6 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -525,6 +525,12 @@ for ((rsz = $rszlo; rsz <= $rszhi; rsz*=2)); do # 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 echo "starting run for test: $test rsz: $rsz " \ -- 1.8.3.1