From 5c4a5244b9567e2605bc6500e1ccfe846f00d19f Mon Sep 17 00:00:00 2001 From: liyl_kl Date: Wed, 7 Aug 2024 14:49:53 +0800 Subject: [PATCH] add lmbench test --- conf/kytuning.cfg | 3 ++- run.sh | 4 ++-- yaml-base/lmbench-base.yaml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 yaml-base/lmbench-base.yaml diff --git a/conf/kytuning.cfg b/conf/kytuning.cfg index 834991a..8e0684a 100644 --- a/conf/kytuning.cfg +++ b/conf/kytuning.cfg @@ -5,13 +5,14 @@ tools_server_url="http://127.0.0.1:8000/tools/" #tools_stream_url="https://github.com/jeffhammond/STREAM/archive/refs/heads/master.zip" tools_stream_url="https://gitee.com/src-openeuler/stream/raw/master/stream-5.10.tar.gz" tools_fio_url="https://gitee.com/src-openeuler/fio/raw/openEuler-24.03-LTS/fio-3.34.tar.bz2" +tools_lmbench_url="https://gitee.com/src-openeuler/lmbench/raw/master/lmbench3.tar.gz" ## 支持的所有测试工具列表 #rk_benchmark="unixbench lmbench stream fio iozone cpu2006 cpu2017 jvm2008" ## 自定义场景 测试工具 -rk_benchmark="stream fio" +rk_benchmark="lmbench" # 工具包本地路径,未指定时将从网络下载 #rk_toolspath=kytuning-tools.tar diff --git a/run.sh b/run.sh index 7d2a61e..b941b2f 100644 --- a/run.sh +++ b/run.sh @@ -103,8 +103,8 @@ function download() { fi ;; lmbench) - if [ ! -f ${tools_path}/lmbench-3.0-a9-2.tar.bz2 ]; then - handle_single_benchmark ${tools_path} lmbench.tar "${tools_server_url}" + if [ ! -f ${tools_path}/lmbench3.tar.gz ]; then + ${WGET_BIN} ${tools_path} ${tools_lmbench_url} fi ;; stream) diff --git a/yaml-base/lmbench-base.yaml b/yaml-base/lmbench-base.yaml new file mode 100644 index 0000000..27113aa --- /dev/null +++ b/yaml-base/lmbench-base.yaml @@ -0,0 +1,32 @@ +project: "lmbench3" # 工程名称 +test_type: "lmbench" +# base_path: "/root/kytuning/run/stream" +log_file: "{base_path}/kytuning.log" +log_level: "debug" +# openeuler 版本 +tool_tgz: "{base_path}/tools/lmbench3.tar.gz" +tool_dir: "{base_path}/lmbench3" +tool_decompression: "tar -xvf {tool_tgz} -C {base_path} > /dev/null " + +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: + clean: "make clean" + build: "make " + run: + pre_cmd: "make clean" + command: "make results;make see" + + schemeflag: 0 -- Gitee