Commit 88055b42 authored by Jim Harris's avatar Jim Harris Committed by Tomasz Zawadzki
Browse files

test/spdkcli: reduce amount of HUGEMEM memory requested



We do not need to force usage of 4096MB of memory for these
tests.  Let's just remove how that is being forced.

This allows us to also remove the setup.sh call from
the spdkcli test common.sh script.  Its only purpose
was to increase the amount of memory allocated to satisfy
the spdkcli tests, but now that the spdkcli tests aren't
forcing so much memory to be allocated, we can remove
that too.

Fixes issue #2694.

Note: these limits were in the original commit for the
test scripts - 7e8206c3 - but it is not clear why they
were added instead of just relying on DPDK dynamic
memory allocation..

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I2210765e69117205a039aa6bc468efa5d5d537cb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14520


Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent f167986b
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -21,19 +21,19 @@ function on_error_exit() {
}

function run_spdk_tgt() {
	$SPDK_BIN_DIR/spdk_tgt -m 0x3 -p 0 -s 4096 &
	$SPDK_BIN_DIR/spdk_tgt -m 0x3 -p 0 &
	spdk_tgt_pid=$!
	waitforlisten $spdk_tgt_pid
}

function run_nvmf_tgt() {
	$SPDK_BIN_DIR/nvmf_tgt -m 0x3 -p 0 -s 4096 &
	$SPDK_BIN_DIR/nvmf_tgt -m 0x3 -p 0 &
	nvmf_tgt_pid=$!
	waitforlisten $nvmf_tgt_pid
}

function run_vhost_tgt() {
	$SPDK_BIN_DIR/vhost -m 0x3 -p 0 -s 4096 &
	$SPDK_BIN_DIR/vhost -m 0x3 -p 0 &
	vhost_tgt_pid=$!
	waitforlisten $vhost_tgt_pid
}
@@ -43,6 +43,3 @@ function check_match() {
	$rootdir/test/app/match/match $testdir/match_files/${MATCH_FILE}.match
	rm -f $testdir/match_files/${MATCH_FILE}
}

# Allocate 5GB of hugepages to have some overhead for run_*()s
HUGEMEM=5120 CLEAR_HUGE=yes "$rootdir/scripts/setup.sh"
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ trap 'on_error_exit;' ERR
timing_enter run_iscsi_tgt

# Running iscsi target with --wait-for-rpc. Implies framework_start_init later
$SPDK_BIN_DIR/iscsi_tgt -m 0x3 -p 0 -s 4096 --wait-for-rpc &
$SPDK_BIN_DIR/iscsi_tgt -m 0x3 -p 0 --wait-for-rpc &
iscsi_tgt_pid=$!
waitforlisten $iscsi_tgt_pid
$rootdir/scripts/rpc.py framework_start_init
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ PORT="9998"
trap 'err_cleanup; exit 1' SIGINT SIGTERM EXIT

timing_enter run_spdk_tgt_tcp
$SPDK_BIN_DIR/spdk_tgt -m 0x3 -p 0 -s 2048 &
$SPDK_BIN_DIR/spdk_tgt -m 0x3 -p 0 &
spdk_tgt_pid=$!

waitforlisten $spdk_tgt_pid
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ run_spdk_tgt
timing_exit run_spdk_tgt

timing_enter run_spdk_virtio
$SPDK_BIN_DIR/spdk_tgt -m 0x4 -p 0 -g -u -s 1024 -r /var/tmp/virtio.sock &
$SPDK_BIN_DIR/spdk_tgt -m 0x4 -p 0 -g -u -r /var/tmp/virtio.sock &
virtio_pid=$!
waitforlisten $virtio_pid /var/tmp/virtio.sock
timing_exit run_spdk_virtio