test/vhost: Always enable performance cpu governor in Vhost performance tests
Signed-off-by: wawryk <maciejx.wawryk@intel.com> Change-Id: Id0c1217b1c7138e7c618d816948ca34ba8a09be6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8543 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
d2b415bc86
commit
a3d0f42889
@ -212,6 +212,15 @@ if [[ -z $disk_map ]]; then
|
||||
fail "No disk map provided for test. Exiting."
|
||||
fi
|
||||
|
||||
# ===== Enable "performance" cpu governor =====
|
||||
if hash cpupower; then
|
||||
cpupower frequency-set -g performance
|
||||
else
|
||||
echo "WARNING: Missing CPUPOWER!!! Please install."
|
||||
fi
|
||||
current_governor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
||||
echo "INFO: Using $current_governor cpu governor for test."
|
||||
|
||||
# ===== Precondition NVMes if specified =====
|
||||
if [[ $run_precondition == true ]]; then
|
||||
# Using the same precondition routine possible for lvols thanks
|
||||
|
Loading…
Reference in New Issue
Block a user