Jump to content

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


jstefanop

Recommended Posts

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?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines