Whamcloud - gitweb
LU-413 limit used inodes for performance tests
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 14 Jun 2011 21:33:35 +0000 (15:33 -0600)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 26 Jul 2011 20:56:09 +0000 (16:56 -0400)
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 <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/942
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Niu Yawei <yawei.niu@gmail.com>
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/test-framework.sh

index 011a198..3ab67a9 100644 (file)
@@ -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