X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-iokit%2Fobdfilter-survey%2Fobdfilter-survey;h=77f2cb32dcab4d1f3c9473c279969b02579d838d;hp=b2abaeb5ff83d2d9bffbb6103f6dca4aec47a941;hb=e8909714c50528b26acc3ae59346ec8840d6dc39;hpb=3e9d99b9bb21276b9abcd376eb9a404429a5e369 diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index b2abaeb..77f2cb3 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -38,6 +38,36 @@ # include library source libecho +# The following variables can be set in the environment, or on the +# command line +# result file prefix (date/time + hostname makes unique) +# NB ensure path to it exists +rslt_loc=${rslt_loc:-"/tmp"} +rslt=${rslt:-"$rslt_loc/obdfilter_survey_`date +%F@%R`_`uname -n`"} + +# Set this true to check file contents +verify=${verify:-0} + +# total size (MBytes) per obd instance +# large enough to avoid cache effects +# and to make test startup/shutdown overhead insignificant +size=${size:-16384} + +# record size (KBytes) +rszlo=${rszlo:-1024} +rszhi=${rszhi:-1024} + +# number of objects per OST +nobjlo=${nobjlo:-1} +#was nobjhi=${nobjhi:-512} +nobjhi=${nobjhi:-16} + +# threads per OST (1024 max) +thrlo=${thrlo:-1} +thrhi=${thrhi:-16} + +# End of variables + # create a set of objects, check there are 'n' contiguous ones and # return the first or 'ERROR' # parameter: 1. hostname @@ -173,10 +203,6 @@ if [ -n "$ECHO_CLIENTS" ]; then done fi -# result file prefix (date/time + hostname makes unique) -# NB ensure path to it exists -rslt_loc=${rslt_loc:-"/tmp"} -rslt=${rslt:-"$rslt_loc/obdfilter_survey_`date +%F@%R`_`uname -n`"} # what tests to run (first must be write) tests_str=${tests_str:-""} @@ -192,27 +218,6 @@ else tests=(write rewrite read) fi -# Set this true to check file contents -verify=0 - -# total size (MBytes) per obd instance -# large enough to avoid cache effects -# and to make test startup/shutdown overhead insignificant -size=${size:-16384} - -# record size (KBytes) -rszlo=${rszlo:-1024} -rszhi=${rszhi:-1024} - -# number of objects per OST -nobjlo=${nobjlo:-1} -#was nobjhi=${nobjhi:-512} -nobjhi=${nobjhi:-16} - -# threads per OST (1024 max) -thrlo=${thrlo:-1} -thrhi=${thrhi:-16} - # restart from here iff all are defined restart_rsz= restart_thr=1