From 9754119ac90931b8e9621625e275e02edd255a29 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Tue, 28 Mar 2023 14:45:19 +0200 Subject: [PATCH] test/vfio-user: reduce spdk_tgt memory allocation Limit spdk_tgt app to 512MB of memory. This should be sufficient for tests in this suite provided we also reduce the size of created malloc bdevs. Signed-off-by: Karol Latecki Change-Id: Iaaba1e13899d37232f7acf842b7deed05935f78f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17365 Reviewed-by: Shuhei Matsumoto Reviewed-by: Jaroslaw Chachulski Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris --- test/vfio_user/common.sh | 2 +- test/vfio_user/nvme/common.sh | 2 +- test/vfio_user/virtio/common.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/vfio_user/common.sh b/test/vfio_user/common.sh index 4c7f11ab4..8f1f2540f 100644 --- a/test/vfio_user/common.sh +++ b/test/vfio_user/common.sh @@ -3,7 +3,7 @@ # All rights reserved. # -: ${MALLOC_BDEV_SIZE=256} +: ${MALLOC_BDEV_SIZE=128} : ${MALLOC_BLOCK_SIZE=512} source "$rootdir/test/vhost/common.sh" diff --git a/test/vfio_user/nvme/common.sh b/test/vfio_user/nvme/common.sh index 3fd566dab..040b3cae6 100644 --- a/test/vfio_user/nvme/common.sh +++ b/test/vfio_user/nvme/common.sh @@ -23,7 +23,7 @@ function vfio_user_run() { mkdir -p $vfio_user_dir timing_enter vfio_user_start - $rootdir/build/bin/nvmf_tgt -r $vfio_user_dir/rpc.sock -m 0xf & + $rootdir/build/bin/nvmf_tgt -r $vfio_user_dir/rpc.sock -m 0xf -s 512 & nvmfpid=$! echo $nvmfpid > $nvmf_pid_file diff --git a/test/vfio_user/virtio/common.sh b/test/vfio_user/virtio/common.sh index aed46907d..3703e6bf6 100644 --- a/test/vfio_user/virtio/common.sh +++ b/test/vfio_user/virtio/common.sh @@ -13,7 +13,7 @@ function vfu_tgt_run() { mkdir -p $vfio_user_dir timing_enter vfu_tgt_start - $rootdir/build/bin/spdk_tgt -r $vfio_user_dir/rpc.sock -m 0xf & + $rootdir/build/bin/spdk_tgt -r $vfio_user_dir/rpc.sock -m 0xf -s 512 & vfupid=$! echo $vfupid > $vfu_pid_file