mmcloughlin / goperf

Continuous Benchmarking for the Go compiler
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

runner: frequency pinning #46

Closed mmcloughlin closed 4 years ago

mmcloughlin commented 4 years ago

Currently the runner just uses performance scaling governor. Consider pinning frequency instead, similar to perflock.

mmcloughlin commented 4 years ago

On gopherplex:

$ head /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_m*
==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq <==
4000000

==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq <==
800000

on gopherpi

$ sudo head /sys/devices/system/cpu/cpu0/cpufreq/*_freq*
==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq <==
1500000

==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq <==
1500000

==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq <==
600000

==> /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies <==
600000 1500000 

==> /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq <==
1500000

==> /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq <==
1500000

==> /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq <==
600000