From 9e7c657c020b724570d3924087a7a053df7a65f3 Mon Sep 17 00:00:00 2001 From: qz_cx Date: Fri, 23 Feb 2024 08:59:27 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!23=20:?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9iozone=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yaml-base/iozone-base.yaml | 60 +++++++++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/yaml-base/iozone-base.yaml b/yaml-base/iozone-base.yaml index 451fd8c..4545964 100644 --- a/yaml-base/iozone-base.yaml +++ b/yaml-base/iozone-base.yaml @@ -10,15 +10,53 @@ 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: - 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: \ No newline at end of file + - 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