Whamcloud - gitweb
LU-6385 tests: sync I/O in obdfilter-survey 42/16942/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 26 Oct 2015 16:14:49 +0000 (12:14 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 30 Oct 2015 15:01:38 +0000 (15:01 +0000)
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>
lustre-iokit/obdfilter-survey/obdfilter-survey

index 2b8fcd6..36578cc 100755 (executable)
@@ -525,14 +525,10 @@ 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
+                                       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