Commit 4edb1e03 authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

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: default avatarSeth Howell <seth.howell@intel.com>
Change-Id: I18de5feee500dae456c6ba3d9759085bc6f4e96e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2280


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent e4c4a0c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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