From c49a7101572ab3096c9ac07d3fbb763393d82a12 Mon Sep 17 00:00:00 2001 From: Richael Zhuang Date: Thu, 5 Mar 2020 14:55:42 +0800 Subject: [PATCH] test/vhost: add "-g" for vhost_fuzz app If the hugepage we use is 2MB, the numble of hugetlbfs will exceeds the limit of 8. we must pass "-g" to vhost_fuzz app, which will pass "--single-file-segments" to DPDK to create a single non-physically- continuous hugetlbfs file for all its memory. Here we pass "-g" to vhost_fuzz app which make the script work under both 2MB and 1GB hugepage. Signed-off-by: Richael Zhuang Change-Id: I0287584c54f03a379957d6885c23e21a1fd10c4b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1148 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Darek Stojaczyk Reviewed-by: Ben Walker --- test/vhost/fuzz/fuzz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vhost/fuzz/fuzz.sh b/test/vhost/fuzz/fuzz.sh index 7d1699e9b..2e57376ca 100755 --- a/test/vhost/fuzz/fuzz.sh +++ b/test/vhost/fuzz/fuzz.sh @@ -7,7 +7,7 @@ source "$rootdir/scripts/common.sh" VHOST_APP+=(-p 0) FUZZ_RPC_SOCK="/var/tmp/spdk_fuzz.sock" -VHOST_FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" --wait-for-rpc) +VHOST_FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" -g --wait-for-rpc) vhost_rpc_py="$rootdir/scripts/rpc.py" fuzz_generic_rpc_py="$rootdir/scripts/rpc.py -s $FUZZ_RPC_SOCK"