Whamcloud - gitweb
* Applied obdfilter-survey fix from 10490 (all the threads were working on
authoreeb <eeb>
Thu, 18 May 2006 17:28:35 +0000 (17:28 +0000)
committereeb <eeb>
Thu, 18 May 2006 17:28:35 +0000 (17:28 +0000)
    the first object).

lustre-iokit/obdfilter-survey/obdfilter-survey

index 5deabff..4f89913 100755 (executable)
@@ -417,7 +417,7 @@ done
 for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do
     for ((nobj=$nobjlo;nobj<=$nobjhi;nobj*=2)); do 
        for ((thr=$thrlo;thr<=$thrhi;thr*=2)); do
-           if ((thr < nobj)); then
+           if ((thr % nobj)); then
                continue
            fi
            # restart?
@@ -481,10 +481,11 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do
                    devno=${devnos[$idx]}
                    tmpfi="${tmpf}_$idx"
                    first_obj=${first_objs[$idx]}
+                   thr_per_obj=$((${thr}/${nobj}))
                    echo >> ${cmdsf}_${host} \
                        "$lctl > $tmpfi 2>&1 \\
                          --threads $thr -$snap $devno \\
-                        test_brw $count `testname2type $test` q $pages ${thr}t${first_obj} &"
+                        test_brw $count `testname2type $test` q $pages ${thr_per_obj}t${first_obj} &"
                 done
                 pidcount=0
                 for host in ${unique_hosts[@]}; do