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

cpufreq depends on scheduler #14

Open
h1z1 opened this issue Oct 9, 2020 · 2 comments
Open

cpufreq depends on scheduler #14

h1z1 opened this issue Oct 9, 2020 · 2 comments

Comments

@h1z1
Copy link

h1z1 commented Oct 9, 2020

Hi

Not sure how you want to handle it but scaling_cur_freq is not guaranteed to exist. When it doesn't the console scrolls with errors

cat: /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq: No such file or directory
cat: /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq: No such file or directory
cat: /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq: No such file or directory

Using acpi_idle for example:

/sys/devices/system/cpu/cpuidle/current_driver:acpi_idle
/sys/devices/system/cpu/cpuidle/current_governor_ro:menu

s'pose as a fallback you could parse cpuinfo, kinda messy either way.

@MatthiasSchinzel
Copy link
Owner

Hi

Thanks for the information! Then, we should definitively test if scaling_cur_freq exists!

Just for documentation: Problem with cpuinfo is that it does not show boost clock. It will stay at the maximum base frequency. So in this case I would prefer not showing any information at all, rather than potentially wrong data.

@h1z1
Copy link
Author

h1z1 commented Oct 10, 2020

Tracking things like boost clocks would be ...a nightmare no? XFR, AFR, CPR... Maybe a simpler idea is track the running maximum? Should make it pretty clear which CPUs are hitting per core XFR for example.

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