From f7b1b2b1191f5e6b6d1e8c11427cdd621f7e5a52 Mon Sep 17 00:00:00 2001 From: wangqingzheng Date: Fri, 23 Feb 2024 15:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0iozone=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yaml-base/iozone-base.yaml | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 yaml-base/iozone-base.yaml diff --git a/yaml-base/iozone-base.yaml b/yaml-base/iozone-base.yaml new file mode 100644 index 0000000..4545964 --- /dev/null +++ b/yaml-base/iozone-base.yaml @@ -0,0 +1,62 @@ +project: "iozone3_430" # 工程名称 +test_type: "iozone" +# base_path: "/root/kytuning/run/iozone" +log_file: "{base_path}/kytuning.log" +log_leve: "debug" + +tool_tgz: "{base_path}/tools/iozone3_430.tar" +tool_dir: "{base_path}/iozone3_430" +tool_decompression: "tar -xvf {tool_tgz} -C {base_path}" + +maxiterations: 1 + + +# rpm_list: +# - "numactl" +# - "jemalloc" + +# configs: +# - name: "vm.swappiness" +# desc: "the vm.swapiness" +# get : "sysctl -a | grep vm.swappiness | awk '{print $3}'" +# set : "sysctl -w vm.swappiness={value}" +# value: 20 + +testcase: + - name: "half" + clean: "" + build: "make -C src/current linux" + run: + pre_cmd: "mkdir result; {command}" + command: "./src/current/iozone -i 0 -i 1 -i 2 -s {FUNC_IOZONE_MEMSIZE} -r 16m -f {FUNC_IOZONE_FILE} -Rb ./result/iozone_{FUNC_IOZONE_MEMSIZE}.xls | tee ./result/iozone_{FUNC_IOZONE_MEMSIZE}_console.log" + c_param: {FUNC_IOZONE_MEMSIZE: "half", FUNC_IOZONE_FILE: ""} + schemeflag: 0 + # configs: + # - name: "kernel.sched_migration_cost_ns" + # desc: "context switch" + # get : "sysctl -n kernel.sched_migration_cost_ns" + # set : "sysctl -n kernel.sched_migration_cost_ns={value}" + # type: "continuous" + # values: + # - 100000 + # - 500000 + # - 100000 + # items: + + - name: "full" + clean: "" + build: "" + run: + pre_cmd: "mkdir result; {command}" + command: "./src/current/iozone -i 0 -i 1 -i 2 -s {FUNC_IOZONE_MEMSIZE} -r 16m -f {FUNC_IOZONE_FILE} -Rb ./result/iozone_{FUNC_IOZONE_MEMSIZE}.xls | tee ./result/iozone_{FUNC_IOZONE_MEMSIZE}_console.log" + c_param: {FUNC_IOZONE_MEMSIZE: "full", FUNC_IOZONE_FILE: ""} + schemeflag: 0 + + - name: "double" + clean: "make -C src/current clean" + build: "" + run: + pre_cmd: "mkdir result; {command}" + command: "./src/current/iozone -i 0 -i 1 -i 2 -s {FUNC_IOZONE_MEMSIZE} -r 16m -f {FUNC_IOZONE_FILE} -Rb ./result/iozone_{FUNC_IOZONE_MEMSIZE}.xls | tee ./result/iozone_{FUNC_IOZONE_MEMSIZE}_console.log" + c_param: {FUNC_IOZONE_MEMSIZE: "double", FUNC_IOZONE_FILE: ""} + schemeflag: 0 \ No newline at end of file -- Gitee