X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-iokit%2Fobdfilter-survey%2Fobdfilter-survey;h=4f8991336528ce16853ae83d9048ef8133454748;hp=5deabff79c7e303f91a3fae4a3d0f1b3cac32c27;hb=d0a54de6fc931066fd5cf18c78d2eba597e09942;hpb=4b177a337613f88ebb4f6454d2bdec64b9135c27 diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 5deabff..4f89913 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -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