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 <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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
e4c4a0c191
commit
4edb1e0370
@ -23,8 +23,9 @@ if [ $(uname -s) = Linux ]; then
|
|||||||
echo "core" > /proc/sys/kernel/core_pattern
|
echo "core" > /proc/sys/kernel/core_pattern
|
||||||
|
|
||||||
# Make sure that the hugepage state for our VM is fresh so we don't fail
|
# 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
|
echo 1 > /proc/sys/vm/drop_caches
|
||||||
|
sleep 3
|
||||||
|
|
||||||
# make sure nbd (network block device) driver is loaded if it is available
|
# 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
|
# this ensures that when tests need to use nbd, it will be fully initialized
|
||||||
|
Loading…
Reference in New Issue
Block a user