From 7aefb92affbdfff6372fd6b378318095e151f3ef Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 20 Feb 2020 21:01:40 +0300 Subject: [PATCH] LU-13272 tests: customise dom-performance 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 Reviewed-by: Alexey Lyashkov Reviewed-by: Alexander Zarochentsev Change-Id: I2412b4f1e1d0a591c47a9ceadc37f730c4deedbe Reviewed-on: https://review.whamcloud.com/37650 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/dom-performance.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lustre/tests/dom-performance.sh b/lustre/tests/dom-performance.sh index 501a30f..bf5085e 100644 --- a/lustre/tests/dom-performance.sh +++ b/lustre/tests/dom-performance.sh @@ -222,11 +222,19 @@ run_IOR() { 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 - 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 \ -- 1.8.3.1