Commit df03f9d1 authored by Jim Harris's avatar Jim Harris
Browse files

test: add timing calls to vhost/initiator/blockdev.sh



Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I5e19266d5d418e1b356308d2b9efa419c1b22232

Reviewed-on: https://review.gerrithub.io/392002


Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent de76de1e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -70,7 +70,9 @@ function prepare_fio_job_for_unmap() {

source $rootdir/test/vhost/common/common.sh
$rootdir/scripts/gen_nvme.sh
timing_enter spdk_vhost_run
spdk_vhost_run $testdir
timing_exit spdk_vhost_run
$rpc_py construct_malloc_bdev 128 512
$rpc_py construct_malloc_bdev 128 4096
$rpc_py add_vhost_scsi_lun vhost.0 0 Nvme0n1
@@ -118,9 +120,11 @@ for bdev in $bdevs; do
                done

                #Host test for unmap
                timing_enter unmap
                cp $testdir/../common/fio_jobs/default_initiator.job $testdir/bdev.fio
                prepare_fio_job_for_unmap "$bdevs"
                run_fio --spdk_conf=$testdir/bdev.conf
                timing_exit unmap

                #Host test for +4G
                if [ $bdev == "Nvme0n1" ]; then
@@ -139,4 +143,6 @@ for bdev in $bdevs; do
        rm -f $testdir/bdev.conf
        timing_exit bdev
done
timing_enter spdk_vhost_kill
spdk_vhost_kill
timing_exit spdk_vhost_kill