From 589bf351f4c16b54219055ab474ebc56873cee99 Mon Sep 17 00:00:00 2001 From: qwang59 Date: Mon, 24 Jun 2024 21:32:31 +0800 Subject: [PATCH] Add pstate,cstate,rapl tests for emr-oe Signed-off-by: qwang59 --- scenario/emr-oe/tests-cstate | 15 +++++++++++++++ scenario/emr-oe/tests-pstate | 22 ++++++++++++++++++++++ scenario/emr-oe/tests-rapl | 15 +++++++++++++++ 3 files changed, 52 insertions(+) create mode 100755 scenario/emr-oe/tests-cstate create mode 100755 scenario/emr-oe/tests-pstate create mode 100755 scenario/emr-oe/tests-rapl diff --git a/scenario/emr-oe/tests-cstate b/scenario/emr-oe/tests-cstate new file mode 100755 index 0000000..2ba20e2 --- /dev/null +++ b/scenario/emr-oe/tests-cstate @@ -0,0 +1,15 @@ +# This file collects the CPU Core cstate cases which can run +# on Intel® Architecture-based server platforms. +# @hw_dep: +# @other_dep: +# @other_warn: which turbostat 2>/dev/null @ turbostat tool is required +# @other_warn: which perf 2>/dev/null @ perf tool is required, please install perf.x86_64 package + +powermgr_cstate_tests.sh -t verify_cstate_name +powermgr_cstate_tests.sh -t verify_server_all_cores_cstate6 +powermgr_cstate_tests.sh -t verify_server_core_cstate6_residency +powermgr_cstate_tests.sh -t verify_server_cstate_list +powermgr_cstate_tests.sh -t verify_server_perf_core_cstat_update +powermgr_cstate_tests.sh -t verify_server_perf_pkg_cstat_update +powermgr_cstate_tests.sh -t verify_server_pc2_entry +powermgr_cstate_tests.sh -t verify_server_pc6_entry diff --git a/scenario/emr-oe/tests-pstate b/scenario/emr-oe/tests-pstate new file mode 100755 index 0000000..03363e4 --- /dev/null +++ b/scenario/emr-oe/tests-pstate @@ -0,0 +1,22 @@ +# This file contains basic test cases designed to +# evaluate the performance of Intel_pstate and cpufreq +# scaling drivers on Intel® Architecture-based platforms +# For a deeper understanding of HW P-state related MSRs, +# Users may refer to the Intel® Software Developer Manual. +# @hw_dep: +# @other_dep: general_test.sh -t turbostat @ The latest 2024 version turbostat tool is required +# @other_warn: which stress 2>/dev/null @ stress tool is required, please install stress-ng.x86_64 and run command: ln -s /usr/bin/stress-ng /usr/bin/stress + +intel_pstate_tests.sh -t verify_default_gov_epp +intel_pstate_tests.sh -t verify_gov_perf_epp_perf +intel_pstate_tests.sh -t verify_gov_powersave_epp_perf +intel_pstate_tests.sh -t verify_gov_powersave_epp_balance_perf +intel_pstate_tests.sh -t verify_gov_powersave_epp_balance_power +intel_pstate_tests.sh -t verify_gov_powersave_epp_power +intel_pstate_tests.sh -t verify_cpufreq_with_governor_perf +intel_pstate_tests.sh -t verify_cpufreq_with_governor_powersave +intel_pstate_tests.sh -t verify_cpufreq_with_maxperfpct_50 +intel_pstate_tests.sh -t verify_cpufreq_with_minperfpct_50 +intel_pstate_tests.sh -t verify_max_cpufreq_perf_turbo +intel_pstate_tests.sh -t verify_max_cpufreq_passive_perf_turbo +intel_pstate_tests.sh -t verify_max_cpufreq_perf_non_turbo diff --git a/scenario/emr-oe/tests-rapl b/scenario/emr-oe/tests-rapl new file mode 100755 index 0000000..a0e07f5 --- /dev/null +++ b/scenario/emr-oe/tests-rapl @@ -0,0 +1,15 @@ +# This file collects RAPL cases which can run against intel_rapl driver +# on Intel® Architecture-based server platforms. +# @hw_dep: +# @other_dep: +# @other_warn: which turbostat 2>/dev/null @ turbostat tool is required +# @other_warn: which stress 2>/dev/null @ stress tool is required, please install stress-ng.x86_64 and run command: ln -s /usr/bin/stress-ng /usr/bin/stress +# @other_warn: which perf 2>/dev/null @ perf tool is required, please install perf.x86_64 package + +intel_rapl_test.sh -t check_sysfs +intel_rapl_test.sh -t check_pkg_domain +intel_rapl_test.sh -t check_dram_domain +intel_rapl_test.sh -t check_rapl_control_after_power_limit_change +intel_rapl_test.sh -t rapl_control_enable_disable_pl1 +intel_rapl_test.sh -t rapl_control_enable_disable_pl2 +intel_rapl_test.sh -t rapl_control_enable_disable_pl4