test/scheduler: Wait for a bit for the governor to change the freq

Issues like https://github.com/spdk/spdk/issues/1784 showed that
governor may need some more time to properly adjust cpufreq's sysfs
knobs. In case we see that frequency setting hasn't changed after
given iteration, wait for 0.5s to make sure it finally settles.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6283 (master)

(cherry picked from commit 92e49c0044)
Change-Id: Ibf25d0d1962bf2b07b13d60d6096c5cc185c1279
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9967
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Michal Berger 2021-02-05 11:42:52 +01:00 committed by Tomasz Zawadzki
parent a1570edd1d
commit e2025217a7

View File

@ -86,7 +86,8 @@ verify_dpdk_governor() {
elif ((main_core_setspeed < old_main_core_setspeed)); then
dir=0
elif ((main_core_setspeed == old_main_core_setspeed)); then
# Frequency didn't change, skip
# Frequency didn't change, skip and wait for a bit
sleep 0.5s
continue
fi