From: Andreas Dilger Date: Tue, 14 Jun 2011 21:33:35 +0000 (-0600) Subject: LU-413 limit used inodes for performance tests X-Git-Tag: v1_8_6_81~20 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=930243348131214ede3376790dbcdab50335d3ee;p=fs%2Flustre-release.git LU-413 limit used inodes for performance tests If doing wide stripe mdsrate tests, don't try to consume all of the inodes on the OSTs. The MDS does not consume inodes on OSTs completely uniformly, and this only introduces spurious failures when the inodes run out unevenly. Change-Id: I36243e0d3e990858d268d043012af40419936fe4 Signed-off-by: Andreas Dilger Reviewed-on: http://review.whamcloud.com/942 Reviewed-by: Yu Jian Reviewed-by: Niu Yawei Tested-by: Hudson Reviewed-by: Johann Lombardi --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 011a198..3ab67a9 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -3220,7 +3220,8 @@ inodes_available () { } mdsrate_inodes_available () { - echo $(($(inodes_available) - 1)) + local min_inodes=$(inodes_available) + echo $((min_inodes * 99 / 100)) } # reset llite stat counters