Whamcloud - gitweb
LU-2887 tests: disable SLOW for ZFS in parallel-scale
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Thu, 26 Sep 2013 17:39:49 +0000 (13:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 30 Dec 2013 22:18:45 +0000 (17:18 -0500)
Because all zfs pools are on the same physical device in autotest
ZFS backed OSTs run VERY slowly so disable SLOW.  Decrease load on zfs
backed MDS.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes mdtfilesystemtype=zfs mdsfilesystemtype=zfs ostfilesystemtype=zfs testlist=parallel-scale
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I99d980adcf4259f8431c351ce6fecb1088419130
Reviewed-on: http://review.whamcloud.com/7778
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/parallel-scale.sh

index 3968092..bb366a9 100644 (file)
@@ -11,6 +11,17 @@ init_logging
 #              bug 20670
 ALWAYS_EXCEPT="parallel_grouplock $PARALLEL_SCALE_EXCEPT"
 
+if [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ]; then
+       ZFSSLOW=$SLOW
+       SLOW=no
+
+       cbench_IDIRS=1
+       cbench_RUNS=1
+
+       mdtest_nFiles=10000
+       statahead_NUMFILES=100000
+fi
+
 # common setup
 MACHINEFILE=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines}
 clients=${CLIENTS:-$HOSTNAME}
@@ -20,8 +31,8 @@ num_clients=$(get_node_count ${clients//,/ })
 
 # compilbench
 if [ "$SLOW" = "no" ]; then
-    cbench_IDIRS=2
-    cbench_RUNS=2
+       cbench_IDIRS=${cbench_IDIRS:-2}
+       cbench_RUNS=${cbench_RUNS:-2}
 fi
 
 # metabench
@@ -124,6 +135,9 @@ test_statahead () {
 }
 run_test statahead "statahead test, multiple clients"
 
+[ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs] &&
+       SLOW=$ZFSSLOW
+
 complete $SECONDS
 check_and_cleanup_lustre
 exit_status