Only ramp down every four scheduler cycles

Avoid costly frequency switching if it is possible to stay at a
consistent frequency for longer.

Signed-off-by: tytydraco <tylernij@gmail.com>
latency
tytydraco 4 years ago
parent 95e3e55752
commit 904dd5c6b6

@ -164,7 +164,7 @@ find /sys/devices/system/cpu/ -name schedutil -type d | while IFS= read -r gover
do
# Consider changing frequencies once per scheduling period
write "$governor/up_rate_limit_us" "$((SCHED_PERIOD / 1000))"
write "$governor/down_rate_limit_us" "$((SCHED_PERIOD / 1000))"
write "$governor/down_rate_limit_us" "$((4 * SCHED_PERIOD / 1000))"
write "$governor/rate_limit_us" "$((SCHED_PERIOD / 1000))"
# Jump to hispeed frequency at this load percentage

Loading…
Cancel
Save