How to lower CPU Frequency and disable Cores

  • Hey folks,


    I'm new here and currently starting my OMV journey.

    Currently using a Pentium G620 - 2c @2.6GHz and m goal is it to run it on a lower frequency + disable one core (depends on power consumption).


    The package I used to change the frequency is cpufrequtils.

    Sadly I was not able to change the frequency (min 800MHz and max 1000 MHz).
    I managed to change the governor to powersave but after a restart it foes back to conservative.


    Any idea how I can manage to change the min + max frequencies?


    lscpu:

  • Use the environment variable OMV_CPUFREQUTILS_GOVERNOR. Check the docs how to handle them.


    Finally run


    Code
    # omv-salt stage run prepare
    # omv-salt deploy run cpufrequtils

    Thanks for your reply.


    I did the following:


    Code
    # omv-env set OMV_CPUFREQUTILS_MAXSPEED 1000MHz
    # omv-env set OMV_CPUFREQUTILS_MINSPEED 800MHz
    # omv-env set OMV_CPUFREQUTILS_GOVERNOR powersave

    After that I checked the variables

    Code
    # omv-env get
    ...
    OMV_CPUFREQUTILS_GOVERNOR=powersave
    OMV_CPUFREQUTILS_MAXSPEED=1000MHz
    OMV_CPUFREQUTILS_MINSPEED=800MHz
    ...

    Then I run

    Code
    # omv-salt stage run prepare
    # omv-salt deploy run cpufrequtils

    Both went trough without any failures.



    cpureq-info shows the correct governor but min. and max. frequency did not change.

  • I think the 1000MHz value is incorrect. Please check the official cpufrequtils documentation which values are allowed and correct.

    The values should be correct according to the documentation:

    https://manpages.debian.org/bu…ils/cpufreq-set.1.en.html


    I also tried this method (with fixed values)
    https://www.thinkwiki.org/wiki/How_to_use_cpufrequtils


    Sadly none of those work.
    The CPU has still the default values of 1.6Ghz and 2.6Ghz.

  • Maybe it's nothing but do you have a setting on BIOS to control the performance of the CPU?


    It has been some time since I accessed a BIOS but some have that setting.

    Some pointers here:

    https://support.mellanox.com/s…erformance-tuning-example

  • Looks like something worked (kinda).
    There is apparently an hardware limit which is 1.6Ghz, so I can't go lower (if it's true).


    Now I somehow managed to set it to fixed 1.6Ghz.

  • Varusal

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!