X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-iokit%2Fobdfilter-survey%2Fobdfilter-survey;h=adb5b6b8c890dec2c357a27e55b34503b2e332e6;hb=31170f9ceca91684ea66e0b16757881563a8cf26;hp=382db0c3a573ea2c2979fc9053eba62b0f60c7bd;hpb=471c7966eb03e6283561ba5690a6f9adab68bb9e;p=fs%2Flustre-release.git diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 382db0c..adb5b6b 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -310,8 +310,8 @@ restart_thr=1 restart_nobj=1 # machine's page size (KB) -PAGE_SIZE=${PAGE_SIZE:-$(($(getconf PAGE_SIZE) / 1024))} -PAGE_SIZE=${PAGE_SIZE:-4} +PAGE_SIZE_KB=${PAGE_SIZE_KB:-$(( ${PAGE_SIZE:-$(getconf PAGE_SIZE)} / 1024))} +PAGE_SIZE_KB=${PAGE_SIZE_KB:-4} snap=1 clean_srv_OSS=0 @@ -504,8 +504,8 @@ for ((rsz = $rszlo; rsz <= $rszhi; rsz*=2)); do # compute parameters total_thr=$((ndevs * thr)) total_nobj=$((ndevs * nobj)) - pages=$((rsz / PAGE_SIZE)) - actual_rsz=$((pages * PAGE_SIZE)) + pages=$(( (rsz + PAGE_SIZE_KB - 1) / PAGE_SIZE_KB)) + actual_rsz=$((pages * PAGE_SIZE_KB)) count=$((size * 1024 / (actual_rsz * thr))) actual_size=$((actual_rsz * count * thr)) total_size=$((actual_size * ndevs))