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:
parent
a1570edd1d
commit
e2025217a7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user