From 979051b8593e17e7828cb99ad3d70680c7552b87 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 26 Oct 2015 12:14:49 -0400 Subject: [PATCH] LU-6385 tests: sync I/O in obdfilter-survey 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 Change-Id: Ib19a9e4afd8ca83deceb78fe8fdb4d231da0bc40 Reviewed-on: http://review.whamcloud.com/16942 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- lustre-iokit/obdfilter-survey/obdfilter-survey | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 2b8fcd6..36578cc 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -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 -- 1.8.3.1