Commit 1cab8c9f authored by Maciej Wawryk's avatar Maciej Wawryk Committed by Tomasz Zawadzki
Browse files

scripts/perf: Choose only nvmf device



During nvmf perf test, on machines with have local
nvme device figure out that they are added to
fio.conf file, that can caused bad for results.

Signed-off-by: default avatarMaciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: Ibb6aa7b29ee63a8c41cd80909bc26d1dc224dd0c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3113


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 26e0ef9a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ runtime={run_time}
        else:
            ioengine = "libaio"
            spdk_conf = ""
            out, err = self.remote_call("lsblk -o NAME -nlp")
            out, err = self.remote_call("sudo nvme list | grep 'SPDK' | awk '{print $1}'")
            subsystems = [x for x in out.split("\n") if "nvme" in x]

        if self.cpus_allowed is not None:
@@ -481,6 +481,7 @@ class KernelTarget(Target):
            "allowed_hosts": [],
            "attr": {
                "allow_any_host": "1",
                "serial": "SPDK0001"
                "version": "1.3"
            },
            "namespaces": [
@@ -530,6 +531,7 @@ class KernelTarget(Target):
                    "allowed_hosts": [],
                    "attr": {
                        "allow_any_host": "1",
                        "serial": "SPDK00%s" % subsys_no
                        "version": "1.3"
                    },
                    "namespaces": [
@@ -739,7 +741,7 @@ class KernelInitiator(Initiator):
            time.sleep(1)

    def gen_fio_filename_conf(self, threads, io_depth, num_jobs=1):
        out, err = self.remote_call("lsblk -o NAME -nlp")
        out, err = self.remote_call("sudo nvme list | grep 'SPDK' | awk '{print $1}'")
        nvme_list = [x for x in out.split("\n") if "nvme" in x]

        filename_section = ""