Whamcloud - gitweb
LU-17744 ldiskfs: mballoc stats fixes
[fs/lustre-release.git] / lustre-iokit / ior-survey / ior-survey
index a2d6724..865b488 100644 (file)
@@ -1,4 +1,9 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
 
 # the value of these can be set in the environment.
 # This test assumes a typical pdsh naming scheme, where
@@ -100,8 +105,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=$?