From: James Nunez Date: Tue, 12 Jan 2021 17:56:32 +0000 (-0700) Subject: LU-14286 tests: reduce fallocate space sanity 150e X-Git-Tag: 2.14.0-RC1~25 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b9274179adf0939909ff2dd78d077515a64fd25f LU-14286 tests: reduce fallocate space sanity 150e Changes to fallocate have increase the time to allocate space. The increased run time is making sanity test 150e run long enough to time out. We need to reduce the amount of space santiy test 150e fallocates from 90% to 100 MB per OST or 60% of available space if running in SLOW mode to allow the test to complete. Test-Parameters: trivial env=ONLY=150e fstype=ldiskfs testlist=sanity Signed-off-by: James Nunez Change-Id: Ic6ab41daf8f451c31d092849ccf6906747baa72d Reviewed-on: https://review.whamcloud.com/41211 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index b8d75c6..ff2db35 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -13517,8 +13517,13 @@ test_150e() { min_size_ost=$($LFS df | awk "/$FSNAME-OST/ { print \$4 }" | sort -un | head -1) - # Get 90% of the available space - local space=$(((min_size_ost * 90)/100 * OSTCOUNT)) + # Get 100MB per OST of the available space to reduce run time + # else 60% of the available space if we are running SLOW tests + if [ $SLOW == "no" ]; then + local space=$((1024 * 100 * OSTCOUNT)) + else + local space=$(((min_size_ost * 60)/100 * OSTCOUNT)) + fi fallocate -l${space}k $DIR/$tfile || error "fallocate ${space}k $DIR/$tfile failed" @@ -13546,7 +13551,7 @@ test_150e() { echo "df after unlink:" $LFS df } -run_test 150e "Verify 90% of available OST space consumed by fallocate" +run_test 150e "Verify 60% of available OST space consumed by fallocate" #LU-2902 roc_hit was not able to read all values from lproc function roc_hit_init() {