Whamcloud - gitweb
LU-13272 tests: customise dom-performance 50/37650/7
authorElena Gryaznova <elena.gryaznova@hpe.com>
Thu, 20 Feb 2020 18:01:40 +0000 (21:01 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:21:11 +0000 (17:21 +0000)
dom-performance compares the performance benefits
between the normal file and DoM file.
However it is also interesting to demostrate that if
the file grows beyond the DoM size the performance
for it is not worse compared to the normal file.

Patch allows to set file size beyond the DoM size.

Test-Parameters: trivial mdssizegb=20 \
testlist=dom-performance envdefinitions=ONLY=IOR
Cray-bug-id: LUS-7359
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I2412b4f1e1d0a591c47a9ceadc37f730c4deedbe
Reviewed-on: https://review.whamcloud.com/37650
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/dom-performance.sh

index 501a30f..bf5085e 100644 (file)
@@ -222,11 +222,19 @@ run_IOR() {
 
        chmod 0777 $TDIR
 
 
        chmod 0777 $TDIR
 
-       local bsizes="8"
-       [ "$SLOW" = "yes" ] && bsizes="4 32"
+       # for DoM large files (beyond the DoM size) use
+       # DOM_SIZE=1M :
+       #     bsize="4096 " - 4Mb
+       #     nsegments=$((128 * 1024))
+       # DOM_SIZE=64k :
+       #     bsize="1024 " - 1Mb
+       #     nsegments=$((32 * 1024))
+       local bsizes=${BSIZES:-"4 32"}
+       local nsegments=${NSEGMENTS:-128}
+       [ "$SLOW" = "no" ] && bsizes="8"
 
        for bsize in $bsizes ; do
 
        for bsize in $bsizes ; do
-               segments=$((128 / bsize))
+               segments=$((nsegments / bsize))
 
                dp_run_cmd "mpi_run -np $DP_NUM $IOR \
                        -a POSIX -b ${bsize}K -t ${bsize}K -o $TDIR/ -k \
 
                dp_run_cmd "mpi_run -np $DP_NUM $IOR \
                        -a POSIX -b ${bsize}K -t ${bsize}K -o $TDIR/ -k \