From 422fd82b0cbf30df554e6b4d6ff6c73c08f23227 Mon Sep 17 00:00:00 2001 From: wangqingzheng Date: Fri, 23 Feb 2024 15:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0cpu2006=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/cpu2006-base.yaml | 108 ++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 yaml-base/cpu2006-base.yaml diff --git a/yaml-base/cpu2006-base.yaml b/yaml-base/cpu2006-base.yaml new file mode 100644 index 0000000..3782c4f --- /dev/null +++ b/yaml-base/cpu2006-base.yaml @@ -0,0 +1,108 @@ +project: "cpu2006-1.2" # 工程名称 +test_type: "speccpu2006" +# base_path: "/root/kytuning/run/cpu2006" +log_file: "{base_path}/kytuning.log" +log_level: "debug" + +tool_tgz: "{base_path}/tools/cpu2006-1.2-pf01.iso" +tool_dir: "{base_path}/cpu2006" +tool_decompression: + command: " mount -o ro {tool_tgz} /mnt \n + if [ $? -ne 0 ]; then \n + echo \"Failed to install cpu2006\" \n + umount /mnt \n + exit 1 \n + fi \n + cd /mnt \n + echo yes | ./install.sh -d {tool_dir} \n + cd ~ \n + umount /mnt \n + if [ -f {src_path}/{FUNC_CPU2006_CONFIG} ]; then \n + cp {src_path}/{FUNC_CPU2006_CONFIG} {tool_dir}/config \n + fi" + c_param: {FUNC_CPU2006_CONFIG: ""} +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: "base-single-int" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "", basepeak: "base", FUNC_THREAD_NUM: "single", intfp: "int"} + 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: "base-single-fp" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "", basepeak: "base", FUNC_THREAD_NUM: "single", intfp: "fp"} + schemeflag: 0 + + - name: "base-multi-int" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "", basepeak: "base", FUNC_THREAD_NUM: "multi", intfp: "int"} + schemeflag: 0 + + - name: "base-multi-fp" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "", basepeak: "base", FUNC_THREAD_NUM: "multi", intfp: "fp"} + schemeflag: 0 -- Gitee