CPU speed / governor=performance?
#1
I'm using Debian Jessie 8.5 base, kernel3.10.102-2-pine64-longsleep on a PINE A64+ 2GB and noticed that the CPU clock speed is fixed at 1.152GHz and the governor=performance.

Is this temporary while final scaling settings are being worked out? I'd hope to use something like ondemand, to dynamically scale the clock speed as required, like with other ARM boards. This *appears* to work:


Code:
echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null

and my board dynamically scales between 480MHz and 1152MHz.

Also, are the 1200MHz and 1344MHz CPU speeds practical to use? mentioned in /sys/devices/system/cpu/*/cpufreq/scaling_available_frequencies

Thanks
  Reply
#2
(07-20-2016, 02:49 AM)sheffield_nick Wrote:
Code:
echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null

and my board dynamically scales between 480MHz and 1152MHz.

Anyone know the correct way to make this change persist across reboots? I've read posts about using cpufrequtils or sysfsutils, but neither of these are installed by default? I don't want to screw up by installing some conflicting CPU scaling daemon, etc Blush

Many thanks
  Reply
#3
DietPi allows you to change CPU govs on the fly in dietpi-config, automatically applied during boot: http://dietpi.com/
Also supports options for setting process priority (nice), and lots more "tweaky goodness".


   
   


If you dont want to try DietPi:
Create a service to run the command during boot. copy and paste all into term, then reboot:


Code:
cat << _EOF_ > /etc/systemd/system/cpuondemand.service
[Unit]
Description=cpuondemand

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'
StandardOutput=tty
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
_EOF_
systemctl enable cpuondemand.service
systemctl daemon-reload
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Strange OpenSSL RSA speed Test issue _835_ 2 3,957 07-27-2017, 12:51 AM
Last Post: _835_
  Variable Gigabit Ethernet speed? sheffield_nick 4 6,417 08-24-2016, 11:26 PM
Last Post: MarkHaysHarris777
  Debian Video Performance/"Driver" Install Fawks 8 12,632 06-15-2016, 07:55 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 2 Guest(s)