X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-iokit%2Fior-survey%2Fior-survey;h=235bdc87fb3ef75dd5dbf06a5cc4c7d89a2af5fc;hb=6de11116d14d44b97f7b749679e38d764e864432;hp=b7c7421e78675de916b02044f07671a7b2bbe252;hpb=c1c331f718d4698b71e05df02892f9ef1286dd09;p=fs%2Flustre-release.git diff --git a/lustre-iokit/ior-survey/ior-survey b/lustre-iokit/ior-survey/ior-survey index b7c7421..235bdc8 100644 --- a/lustre-iokit/ior-survey/ior-survey +++ b/lustre-iokit/ior-survey/ior-survey @@ -22,11 +22,11 @@ rsize_hi=1M rsize_iterator="*=2" ## which tests to run (first must be write) -# remount) not really a test; just remount to uncache everything +# clear_cache) not really a test; just uncache everything # *write*) write # *) read #tests=(write rewrite read reread rewrite_again) -tests=(write rewrite remount read reread) +tests=(write rewrite clear_cache read reread) # total # bytes written/read by any client node min_per_client_size=4G @@ -36,13 +36,12 @@ min_total_size=8G file_per_task=1 # the binaries -IOR="/home/ericb/ior/src/C/IOR" -llmount=/home/ericb/lustre/utils/llmount +IOR=/usr/local/sbin/IOR +llmount=llmount pdsh=pdsh # the result file prefix (date/time + hostname makes unique) -#rslt=/home/ericb/ior_survey_`date +%F@%R`_`uname -n` -rslt=/home/ericb/ior_survey +rslt=/tmp/ior_survey_`date +%F@%R`_`uname -n` # where lustre is mounted on the clients lustre=/mnt/lustre @@ -50,10 +49,6 @@ lustre=/mnt/lustre # basename of the test file(s) testfile=${lustre}/ior_survey_testfile -# how to unmount and remount the F/S on a client (to clear the cache) -# change this depending on lustre config (network type, MDS etc) -remount="umount $lustre && $llmount -o nettype=elan mdev6:/ll_mds/client $lustre" - # pdsh args required to instantiate all instances of IOR in parallel # the chosen module must support '-n ' # -R, -f etc @@ -211,10 +206,11 @@ for ((rsize=rsize_lo; rsize<=rsize_hi; rsize$rsize_iterator)); do tmpf=${workf}_tmp echo -n > $tmpf - if [ "$test" = "remount" ]; then - echo "=> $remount" >> $tmpf + if [ "$test" = "clear_cache" ]; then + clear_cache='for LRU in /proc/fs/lustre/ldlm/namespaces/*/lru_size; do; echo clear > $LRU; done' + echo "=> $clear_cache" >> $tmpf $pdsh -S -b -w "$test_clients" >> $tmpf 2>&1 \ - "$remount" + "$clear_cache" status=$? echo "Completion Status: $status" >> $tmpf