Jump to content

big.Little issue with setting CPU freq and governor for both


Recommended Posts

Posted

Trying to set frequencies and governor for both types of CPUs on this processor. armbian-config sets the max freq and governor correctly for the two big proccesors but no config for little. 

 

Tried cpufreq-set for little, but it does not respect governor. If its set to a freq is stays there indefinitely, and if conservative governor is set the max freq goes back to 1.5. 

 

How do we set max freq to 1.2 for little, and governor to conservative and have both stick like big does with armbian-config?

<
Posted

The section that configures CPU scaling in armbian-config configures cpufrequtils (/etc/default/cpufrequtils), and cpufrequtils does not currently support doing anything other than one policy system-wide.

 

If you need to do something else, I'd suggest disabling the cpufrequtils service via SystemD, and spell out exactly what you want in /etc/rc.local, making sure the rc-local.service is enabled and started.

 

# Little cores (0-3)
POLICY=/sys/devices/system/cpu/cpufreq/policy0
echo ondemand > ${POLICY}/scaling_governor
echo 408000 > ${POLICY}/scaling_min_freq
echo 1416000 > ${POLICY}/scaling_max_freq

# Big cores (4-5)
POLICY=/sys/devices/system/cpu/cpufreq/policy4
echo ondemand > ${POLICY}/scaling_governor
echo 408000 > ${POLICY}/scaling_min_freq
echo 1800000 > ${POLICY}/scaling_max_freq

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines