Whamcloud - gitweb
LU-13941 osp: Silently lower requested create_count to maximum
[fs/lustre-release.git] / lustre / tests / functions.sh
index cf35d89..b016732 100644 (file)
@@ -169,7 +169,7 @@ signaled() {
 }
 
 mpi_run () {
-    local mpirun="$MPIRUN $MPIRUN_OPTIONS --oversubscribe"
+    local mpirun="$MPIRUN $MPIRUN_OPTIONS"
     local command="$mpirun $@"
     local mpilog=$TMP/mpi.log
     local rc
@@ -611,6 +611,7 @@ run_ior() {
        ior_xferSize=${ior_xferSize:-1M}
        ior_type=${ior_type:-POSIX}
        ior_DURATION=${ior_DURATION:-30}        # minutes
+       ior_CLEANUP=${ior_CLEANUP:-true}
        local multiplier=1
        case ${ior_blockUnit} in
                [G])
@@ -692,7 +693,7 @@ run_ior() {
     if [ $rc != 0 ] ; then
         error "ior failed! $rc"
     fi
-    rm -rf $testdir
+    $ior_CLEANUP && rm -rf $testdir || true
 }
 
 run_mib() {
@@ -1060,16 +1061,13 @@ run_rr_alloc() {
 
        # create_count accepted values:
        #   [OST_MIN_PRECREATE=32, OST_MAX_PRECREATE=20000]
-       # values outside this range are ignored and -ERANGE is returned.
-       # NOTE: actual maximum value is 16384 (2^14)
+       # values exceeding OST_MAX_PRECREATE are lowered to the maximum.
        [[ $create_count -lt 32 ]] && create_count=32
-       [[ $create_count -gt 20000 ]] && create_count=20000
        local i
        for i in $(seq $MDSCOUNT); do
                do_facet mds$i "$LCTL set_param -n \
-                       lod.$FSNAME-MDT0000*.qos_threshold_rr=100 \
-                       osp.$FSNAME-OST*-osc-MDT0000.create_count=$create_count" ||
-                       error "failed while setting qos_threshold_rr & creat_count"
+                       lod.$FSNAME-MDT*.qos_threshold_rr=100 \
+                       osp.$FSNAME-OST*-osc-MDT*.create_count=$create_count"
        done
 
        # Create few temporary files in order to increase the precreated objects