From 81716a38cb00d22b11a09bdd0be7110c1b4a0d15 Mon Sep 17 00:00:00 2001 From: eeb Date: Thu, 18 May 2006 17:28:35 +0000 Subject: [PATCH] * Applied obdfilter-survey fix from 10490 (all the threads were working on the first object). --- lustre-iokit/obdfilter-survey/obdfilter-survey | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 1.8.3.1