From f4f7038de50a9506c00e5c48155ca7f51b545282 Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Wed, 16 Aug 2023 13:52:51 +0000 Subject: [PATCH] initial bdevperf test Signed-off-by: Alexander Indenbaum --- .github/workflows/build-container.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 1bb201162..7ed2863a3 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -175,6 +175,15 @@ jobs: eval $(make alias) nvmeof-cli get_subsystems + - name: run bdevperf + run: | + # see https://spdk.io/doc/nvmf_multipath_howto.html + . .env + bdevperf_container=$(DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose run --detach --entrypoint=./build/examples/bdevperf spdk-build -m 0x4 -z -r /tmp/bdevperf.sock -q 128 -o 4096 -w verify -t 90) + docker exec $bdevperf_container ./scripts/rpc.py -v -s /tmp/bdevperf.sock bdev_nvme_set_options -r -1 + docker exec $bdevperf_container ./scripts/rpc.py -v -s /tmp/bdevperf.sock bdev_nvme_attach_controller -b Nvme0 -t tcp -a $NVMEOF_IP_ADDRESS -s $NVMEOF_IO_PORT -f ipv4 -n $NQN -l -1 -o 10 + docker exec $bdevperf_container bash -c "PYTHONPATH=$PYTHONPATH:/root/src/spdk/python ./examples/bdev/bdevperf/bdevperf.py -t 1 -s /tmp/bdevperf.sock perform_tests" + #- name: Test mounting nvmeof device locally # run: | # . .env