Giter VIP home page Giter VIP logo

Comments (16)

cyring avatar cyring commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

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.

cyring avatar cyring commented on June 27, 2024

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:

  1. linux-api-headers (/usr/include/asm/msr-index.h)
  2. 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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

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.

cyring avatar cyring commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

Great, thanks :)

from corefreq.

cyring avatar cyring commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

Sure.
I also loaded one core with CPU-bounded task.

screenshot_20161018_160527

from corefreq.

cyring avatar cyring commented on June 27, 2024

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.

oleksandr-oksenenko-zz avatar oleksandr-oksenenko-zz commented on June 27, 2024

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.

JodiTheTigger avatar JodiTheTigger commented on June 27, 2024

screenshot from 2016-10-19 15-55-18

from corefreq.

JodiTheTigger avatar JodiTheTigger commented on June 27, 2024

Ok, so I tried the AUR package again, and it all works! Thanks!

from corefreq.

cyring avatar cyring commented on June 27, 2024

@ 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.

JodiTheTigger avatar JodiTheTigger commented on June 27, 2024

Running it in under fish using konsole under gnome3 on arch linux.

yes, I consistently get both issues.

from corefreq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.