Update sample time for new sched period

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
latency
Tyler Nijmeh 4 years ago
parent 4e1646a3c1
commit 74c3507d27

@ -129,7 +129,7 @@ The scheduler decrements the perceived CPU capacity that longer the CPU has been
Allow the scheduler to place tasks on their origin CPU, increasing cache locality if the CPU is non-local (i.e. a cache hit would definitely have been missed). Allow the scheduler to place tasks on their origin CPU, increasing cache locality if the CPU is non-local (i.e. a cache hit would definitely have been missed).
### Governor Tweaks ### Governor Tweaks
* {up_,down_}rate_limit_us / min_sample_time: 0 --> 10000: Only adjust frequencies once per scheduling cycle to reduce jitter or stutter caused by unrealistic frequency scaling. * {up_,down_}rate_limit_us / min_sample_time: 0 --> 5000: Only adjust frequencies once per scheduling cycle to reduce jitter or stutter caused by unrealistic frequency scaling.
* hispeed_load / go_hispeed_load: 90 --> 80: Jump to a higher frequency if we are approaching the end of the frequency list, where a task may begin to starve or begin to stutter. * hispeed_load / go_hispeed_load: 90 --> 80: Jump to a higher frequency if we are approaching the end of the frequency list, where a task may begin to starve or begin to stutter.
* hispeed_freq: <max>: Set the "higher freq" (referencing hispeed_load) to the maximum frequency available to take advantage of [Race-To-Idle](https://lwn.net/Articles/281629/). * hispeed_freq: <max>: Set the "higher freq" (referencing hispeed_load) to the maximum frequency available to take advantage of [Race-To-Idle](https://lwn.net/Articles/281629/).

@ -162,15 +162,15 @@ do
if [[ "$avail_govs" == *"schedutil"* ]] if [[ "$avail_govs" == *"schedutil"* ]]
then then
_write "${cpu}scaling_governor" schedutil _write "${cpu}scaling_governor" schedutil
write "${cpu}schedutil/up_rate_limit_us" 10000 write "${cpu}schedutil/up_rate_limit_us" 5000
write "${cpu}schedutil/down_rate_limit_us" 10000 write "${cpu}schedutil/down_rate_limit_us" 5000
write "${cpu}schedutil/rate_limit_us" 10000 write "${cpu}schedutil/rate_limit_us" 5000
write "${cpu}schedutil/hispeed_load" 80 write "${cpu}schedutil/hispeed_load" 80
write "${cpu}schedutil/hispeed_freq" `cat "${cpu}cpuinfo_max_freq"` write "${cpu}schedutil/hispeed_freq" `cat "${cpu}cpuinfo_max_freq"`
elif [[ "$avail_govs" == *"interactive"* ]] elif [[ "$avail_govs" == *"interactive"* ]]
then then
_write "${cpu}scaling_governor" interactive _write "${cpu}scaling_governor" interactive
write "${cpu}interactive/min_sample_time" 10000 write "${cpu}interactive/min_sample_time" 5000
write "${cpu}interactive/go_hispeed_load" 80 write "${cpu}interactive/go_hispeed_load" 80
write "${cpu}interactive/hispeed_freq" `cat "${cpu}cpuinfo_max_freq"` write "${cpu}interactive/hispeed_freq" `cat "${cpu}cpuinfo_max_freq"`
fi fi

Loading…
Cancel
Save