Whamcloud - gitweb
LU-8538 tests: Silence conf-sanity 63 on debug kernel 21/22121/7
authorOleg Drokin <oleg.drokin@intel.com>
Wed, 24 Aug 2016 20:33:52 +0000 (16:33 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:41:14 +0000 (05:41 +0000)
On debug kernels every slab only takes whole page at all
times no matter the size, so silence the misleading error then.

Change-Id: I051b98a1200f61c38966e0be7543bf884efbc22c
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/22121
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/conf-sanity.sh

index 76934d3..89f57cf 100755 (executable)
@@ -4490,8 +4490,16 @@ test_63() {
        fi
 
        echo "$inode_slab ldisk inodes per page"
-       [ "$inode_slab" -ge "3" ] ||
-               error "ldisk inode size is too big, $inode_slab objs per page"
+       if [ "$inode_slab" -ge "3" ] ; then
+               # If kmalloc-128 is also 1 per page - this is a debug kernel
+               # and so this is not an error.
+               local kmalloc128=$(do_facet $SINGLEMDS \
+                       "awk '/^(kmalloc|size)-128 / { print \\\$5 }' /proc/slabinfo")
+               # 32 128-byte chunks in 4k
+               [ "$kmalloc128" -eq "32" ] ||
+                       error "ldisk inode size is too big, $inode_slab objs per page"
+       fi
+
        return
 }
 run_test 63 "Verify each page can at least hold 3 ldisk inodes"