From 4edb1e0370a89f16f0a6264949123c944392c8b0 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Fri, 8 May 2020 08:49:49 -0700 Subject: [PATCH] test/autotest: sleep after clearing hugepage cache Give the system some time to clear the hugepage cache after we kick off that operation. Signed-off-by: Seth Howell Change-Id: I18de5feee500dae456c6ba3d9759085bc6f4e96e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2280 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- autotest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotest.sh b/autotest.sh index f6efa9f6b..439357af8 100755 --- a/autotest.sh +++ b/autotest.sh @@ -23,8 +23,9 @@ if [ $(uname -s) = Linux ]; then echo "core" > /proc/sys/kernel/core_pattern # Make sure that the hugepage state for our VM is fresh so we don't fail - # hugepage allocation + # hugepage allocation. Allow time for this action to complete. echo 1 > /proc/sys/vm/drop_caches + sleep 3 # make sure nbd (network block device) driver is loaded if it is available # this ensures that when tests need to use nbd, it will be fully initialized