Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odroid N2+ not running at 2.4Ghz #6

Open
Yeicor opened this issue Dec 18, 2022 · 1 comment
Open

Odroid N2+ not running at 2.4Ghz #6

Yeicor opened this issue Dec 18, 2022 · 1 comment

Comments

@Yeicor
Copy link

Yeicor commented Dec 18, 2022

Hi @jgmdev, thanks for maintaining this project!

Problem

I realized that the big cores are not reaching 2.4 GHz when the system is under load.

This is related to cpupower, as it indicates that the frequency is not supported by the system (probably because it considers all the cores the same, and the little cores do not support the frequency).

If you execute sudo cpupower frequency-set --max 2.4Ghz, the big cores can now reach 2.4Ghz, while the little ones still have the 2.02Ghz limit. However, this does not persist between reboots even if the cpupower service is enabled.

Solution

  1. Disable the cpupower service
  2. Write the following rules for udev (/etc/udev/rules.d/50-scaling-governor.rules):
SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+="/bin/sh -c 'echo 2400000 | tee /sys/devices/system/cpu/cpu[2-5]/cpufreq/scaling_max_freq'"
KERNEL=="cpu[0-9]", SUBSYSTEM=="cpu", ATTR{cpufreq/scaling_governor}="schedutil"

Can this (or an alternative solution) be integrated into the distro so that others don't run into this problem?

@jgmdev
Copy link
Member

jgmdev commented Feb 21, 2023

Another option could be setting the max frequency here:

https://github.com/archdroid-org/alarm-image-generator/blob/master/mods/etc/default/cpupower#L8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants