From 788a2f61655db622c5d8564927edb292fe246f39 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Wed, 24 Aug 2016 16:33:52 -0400 Subject: [PATCH] LU-8538 tests: Silence conf-sanity 63 on debug kernel 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 Reviewed-on: https://review.whamcloud.com/22121 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Andreas Dilger --- lustre/tests/conf-sanity.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 76934d3..89f57cf 100755 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -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" -- 1.8.3.1