Skip to content

Commit

Permalink
test/nvmf: reduce bdevperf memory in io_wait test
Browse files Browse the repository at this point in the history
Limit bdevperf memory to 256MB. This is sufficient to
run the tests and prevents hugepages from running out
in case we run SPDK with memory consuming flags like
"--with-ocf".

Fixes spdk#3031

Signed-off-by: Karol Latecki <[email protected]>
Change-Id: I8a58a64ab1244797a3a80f4272d0878edd263fe6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19264
Reviewed-by: Tomasz Zawadzki <[email protected]>
Reviewed-by: Konrad Sztyber <[email protected]>
Reviewed-by: Michal Berger <[email protected]>
Reviewed-by: Pawel Piatek <[email protected]>
Tested-by: SPDK CI Jenkins <[email protected]>
  • Loading branch information
karlatec authored and tomzawadzki committed Aug 1, 2023
1 parent bd1e8c2 commit a10d1c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nvmf/target/bdev_io_wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ $rpc_py nvmf_create_subsystem nqn.2016-06.io.spdk:cnode1 -a -s SPDK0000000000000
$rpc_py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 Malloc0
$rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t $TEST_TRANSPORT -a $NVMF_FIRST_TARGET_IP -s $NVMF_PORT

"$rootdir/build/examples/bdevperf" -m 0x10 -i 1 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w write -t 1 &
"$rootdir/build/examples/bdevperf" -m 0x10 -i 1 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w write -t 1 -s 256 &
WRITE_PID=$!
"$rootdir/build/examples/bdevperf" -m 0x20 -i 2 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w read -t 1 &
"$rootdir/build/examples/bdevperf" -m 0x20 -i 2 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w read -t 1 -s 256 &
READ_PID=$!
"$rootdir/build/examples/bdevperf" -m 0x40 -i 3 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w flush -t 1 &
"$rootdir/build/examples/bdevperf" -m 0x40 -i 3 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w flush -t 1 -s 256 &
FLUSH_PID=$!
"$rootdir/build/examples/bdevperf" -m 0x80 -i 4 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w unmap -t 1 &
"$rootdir/build/examples/bdevperf" -m 0x80 -i 4 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w unmap -t 1 -s 256 &
UNMAP_PID=$!
sync

Expand Down

0 comments on commit a10d1c2

Please sign in to comment.