X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-iokit%2Fsgpdd-survey%2Fsgpdd-survey;h=b7612d2e90c69fba2629b2490f59db4cf0c2b905;hp=409fb84a48acd78f9d432b53bee90f2d1792ec9e;hb=4b177a337613f88ebb4f6454d2bdec64b9135c27;hpb=e54c618cf0f3321aa3517bb97f0377ea7ab85316 diff --git a/lustre-iokit/sgpdd-survey/sgpdd-survey b/lustre-iokit/sgpdd-survey/sgpdd-survey index 409fb84..b7612d2 100755 --- a/lustre-iokit/sgpdd-survey/sgpdd-survey +++ b/lustre-iokit/sgpdd-survey/sgpdd-survey @@ -3,12 +3,13 @@ ###################################################################### # customize per survey -# the SCSI devices to measure -#scsidevs="/dev/sde /dev/sdh" +# the SCSI devices to measure - WARNING: will be erased. +#scsidevs=`ls /dev/sd[a-z] /dev/sd[a-z][a-z]` # all devices, if you use udev +scsidevs=${scsidevs:-"/dev/sde /dev/sdh"} # result file prefix. date/time+hostname makes unique # NB ensure the path exists if it includes subdirs -rslt=/tmp/sgpdd_survey_`date +%F@%R`_`uname -n` +rslt=${rslt:-"/tmp/sgpdd_survey_`date +%F@%R`_`uname -n`"} # what to do (read or write) actions="write read" @@ -22,13 +23,13 @@ rszlo=1024 rszhi=1024 # Concurrent regions per device -crglo=1 -crghi=256 +crglo=${crglo:-1} +crghi=${crghi:-256} # threads to share between concurrent regions per device # NB survey skips over #thr < #regions and #thr/#regions > SG_MAX_QUEUE -thrlo=1 -thrhi=4096 +thrlo=${thrlo:-1} +thrhi=${thrhi:-4096} ##################################################################### # leave the rest of this alone unless you know what you're doing...