From fc73791d9bd7e71538a96f8700a8cca737598e1a Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 14 Jun 2011 15:53:14 -0600 Subject: [PATCH] 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: I74adf5ba6add7024ce7973d2850c3cb13f4da0cb Signed-off-by: Andreas Dilger Reviewed-on: http://review.whamcloud.com/941 Reviewed-by: Yu Jian Tested-by: Hudson Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index a2bcc7d..c4f97bf 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -3590,7 +3590,8 @@ inodes_available () { } mdsrate_inodes_available () { - echo $(($(inodes_available) - 1)) + local min_inodes=$(inodes_available) + echo $((min_inodes * 99 / 100)) } # reset llite stat counters -- 1.8.3.1