From d1f070e6bc50d6de7f99d93c5c29d9029ef0957d Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Wed, 29 Mar 2023 07:53:51 +0200 Subject: [PATCH] test/vhost: increase memory in virtio tests Increase the memory for spdk processes using "-s" option. When built with additional options (like --with-ocf) processes have more memory requirements. See: https://review.spdk.io/gerrit/c/spdk/spdk/+/17265 https://github.com/spdk/spdk/issues/2951 for details. Signed-off-by: Karol Latecki Change-Id: Ia4fc37787861e2aef28392eaddf389f27bdf7200 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17371 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Krzysztof Karas Reviewed-by: Jim Harris --- test/vhost/initiator/blockdev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vhost/initiator/blockdev.sh b/test/vhost/initiator/blockdev.sh index 17186dc5d..4e5956fa3 100755 --- a/test/vhost/initiator/blockdev.sh +++ b/test/vhost/initiator/blockdev.sh @@ -56,8 +56,8 @@ rpc_cmd vhost_scsi_controller_add_target naa.Malloc1.0 0 Malloc1 [[ "$(rpc_cmd vhost_get_controllers -n naa.Malloc1.0 | jq -r '.[].cpumask')" == "0xc" ]] # start a dummy app, create vhost bdevs in it, then dump the config for FIO -# Pre-allocate 1GB of memory for the application - virtio-user initiator requires it. See issue #2596. -$SPDK_BIN_DIR/spdk_tgt -r /tmp/spdk2.sock -g -s 1024 -m 0x1 & +# Pre-allocate 2GB of memory for the application - virtio-user initiator requires it. See issue #2596. +$SPDK_BIN_DIR/spdk_tgt -r /tmp/spdk2.sock -g -s 2048 -m 0x1 & dummy_spdk_pid=$! waitforlisten $dummy_spdk_pid /tmp/spdk2.sock rpc_cmd -s /tmp/spdk2.sock bdev_virtio_attach_controller --trtype user --traddr 'naa.Nvme0n1_scsi0.0' -d scsi --vq-count 8 'VirtioScsi0'