Whamcloud - gitweb
LU-12207 tests: allow some margin for sanity/76 27/37827/2
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Mar 2020 23:58:46 +0000 (16:58 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 Mar 2020 23:36:46 +0000 (23:36 +0000)
commite07f1041867d9888a1e5cca0a0e5ca11872ac8f8
tree181be641257a19954efb5fbeff7001509782cbb3
parentfd77bcb47ca9b5fea56e0ade43b95faf2622d6d2
LU-12207 tests: allow some margin for sanity/76

With newer slab allocators it is possible that the kernel may keep
some inodes in the per-cpu cache and not release all of them.  This
was resulting sanity test_76 failures with a few (often 12) inodes
not being freed of the inodes that are created by the test, like:

    inode slab grew from 3224 to 3236
    inode slab grew from 70368 to 70380
    inode slab grew from 68878 to 68890

Allow some small number of inodes (8 per core) cached on the client
without considering it a test failure failure.

Clean up test_76 code style to current standards.

Test-Parameters: trivial testlist=sanity env=ONLY=76,ONLY_REPEAT=100
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ia3f60de2fb471bb32da27d36665a3a0fd43ebbe5
Reviewed-on: https://review.whamcloud.com/37827
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh