#!/bin/bash
# SPDX-License-Identifier: MIT or GPL-2.0

. common/fio_common
. common/nbd_common

echo "run perf test via ublk-nbd(with send_zc, nbd server: $NBDSRV:nbdkit memory $NBD_SIZE)"

file=`_create_image "nbd" "none" $NBD_SIZE`

export T_TYPE_PARAMS="-t nbd -q 2 -d 127 --host $NBDSRV --send_zc"
__run_dev_perf 2

_remove_image "nbd" $file
