Comments (16)
Hello,
Do you have linux-headers package installed ?
Because MSR_NHM_TURBO_RATIO_LIMIT is defined into /usr/include/asm/msr-index.h which is a header file included in this package.
from corefreq.
Hey,
I have the same problem building the module on Arch (though not from AUR).
I do have /usr/include/asm/msr-index.h
and there's MSR_NHM_TURBO_RATIO_LIMIT
in it.
from corefreq.
I figured it out, the problem is the custom kernel i use (linux-pf
). For some reason, the module builds only with stock Arch kernel.
from corefreq.
Hm, seems like the custom kernel is not the issue :)
I installed the Arch stock kernel of version 4.8.2
from testing
and the build fails.
So i think the actual reason is the kernel version.
from corefreq.
Thanks for your return 💯
I have also noticed that you are using a testing version 4.8 of the kernel (as JodiTheTigger's log) whereas I'm compiling with the current version 4.7.6-1 for ArchLinux.
Meanwhile I also found that 2 packages provide the msr definition:
- linux-api-headers (/usr/include/asm/msr-index.h)
- linux-headers /usr/lib/modules/4.7.6-1-ARCH/build/arch/x86/include/asm/msr-index.h)
(any diff however between these 2 files).
If you want to stick with the testing kernel, I suggest you to copy/write the few missing definitions into the CoreFreq header file 'intelmsr.h' , such as:
#define MSR_NHM_TURBO_RATIO_LIMIT 0x000001ad
from corefreq.
JFYI i found the following patch: https://patchwork.kernel.org/patch/9217367/ .
Seems like MSR_TURBO_RATIO_LIMIT
should be used now, what do you think?
from corefreq.
Indeed, they are duplicated.
So, I have push an updated corefreqk.c to handle this change.
I also test the case (lines #889) that it will style build with previous kernel versions.
from corefreq.
Great, thanks :)
from corefreq.
Btw, I just few CPU to test CoreFreq with (Bloomfield, Core 2 duo T7250, AMD Turion)
I will appreciate if you can post in reply screenshots of corefreq-cli monitoring your processor(s).
That will be a great help.
from corefreq.
Sure.
I also loaded one core with CPU-bounded task.
from corefreq.
CoreFreq is running a Haswell, Thank you very much 👍
My 2 ways to reach the max turbo on 1 core:
sol 1. in BIOS, limit your settings to one core only activated
sol 2. disable all cores beside #0 using command
echo 0 > /sys/devices/system/cpu/cpu1/online
echo 0 > /sys/devices/system/cpu/cpu2/online
...
echo 0 > /sys/devices/system/cpu/cpu7/online
solution 2 is easier and CoreFreq is cpu hot-plug aware; thus you can disable/enable as wishes.
Prerequisites:
1- 'intel_idle' is your actual Linux cpudriver
--> you can check it by restarting corefreqk.ko module with the option IdleDriverQuery=1
--> next, in corefreq-cli the cpu driver will be printed beside the Linux version
2- Blacklist the module nmi_watchdog (which consumes permanently one fixed state counter)
--> In your kernel boot argument, you can add: nmi_watchdog=0
3- Decrease the sleep interval of corefreqk to its minimum of 500 ms
--> use the option SleepInterval=500 when starting module
This should provide an almost real time monitoring of the cores.
from corefreq.
I don't need max turbo on one core :)
I just ran it so there would be some activity on the screenshot other than just 0-1% jitter.
Anyway, thanks for the tips!
from corefreq.
from corefreq.
Ok, so I tried the AUR package again, and it all works! Thanks!
from corefreq.
@ JodiTheTigger: Thank you for your screenshot, but I can see some layout issues.
- red turbo bars going out of the view
- footer line is repeated 3 times
Do you confirm these layout issues ?
from corefreq.
Running it in under fish
using konsole
under gnome3 on arch linux.
yes, I consistently get both issues.
from corefreq.
Related Issues (20)
- Compilation error: "Makefile:768: arch/amd64/Makefile: No such file or directory" HOT 2
- Whitehaven Memory Controller HOT 11
- Help HOT 1
- Cannot enable use of corefreq idle driver HOT 13
- thin lto brakes corefreq HOT 11
- [Chimera] Musl libc and Clang compiler support HOT 21
- Alpine Linux HOT 7
- TUXEDO Linux 6.5 kernel compatibility? HOT 11
- How can i save a configuration to a file and load it? HOT 10
- AMD Hardware Prefetchers [Zen3 Zen4 EPYC TR] HOT 31
- Intel 12th,13th,14th Gen: Reporting BIOS Overclocking Status HOT 1
- Cannot compile on Almalinux 9.3 HOT 8
- Hardware Prefetch for Atom E-Cores HOT 9
- Steam Deck HOT 39
- Clarification on Intel Prerequisites: What's Being Built by `make`? HOT 3
- Unknown symbol cpufreq_unregister_driver (err -22) HOT 1
- Unraid crash on installation - Intel(R) Celeron(R) CPU J3455 HOT 22
- 1C not changing. Xeon E5 1650 v3 HOT 8
- [SOLVED] No temp readings on Epyc 9274F HOT 48
- coreqfreqd not working on 6.8.6-1-cachyos-echo HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corefreq.