X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-iokit%2Fior-survey%2Fior-survey;h=c632d31d9f08f338b06050723c42704ba3ddf495;hp=a2d67245600ce5563d46d43488c4c9b2ac5422d8;hb=9c6d90191a7d7685d98aee7fb49ff6c23e3956ff;hpb=51c037f2d7d7c7b713ab21617eb983f231510a33 diff --git a/lustre-iokit/ior-survey/ior-survey b/lustre-iokit/ior-survey/ior-survey index a2d6724..c632d31 100644 --- a/lustre-iokit/ior-survey/ior-survey +++ b/lustre-iokit/ior-survey/ior-survey @@ -100,8 +100,7 @@ dump_cache() { # we are assuming mpi uses will also have pdsh local clients=$1;shift local tmpfile=$1;shift - clear_cache='for LRU in /proc/fs/lustre/ldlm/namespaces/*/lru_size; - do sudo /bin/bash -c "echo clear > $LRU"; done' + clear_cache='lctl set_param ldlm.namespaces.*.lru_size=clear' echo "=> $clear_cache" >> $tmpfile $pdsh $pdsh_args "$test_clients" "$clear_cache" >> $tmpfile 2>&1 status=$?