limit CPU performance?

    • limit CPU performance?

      is there a way to limit the CPU performance for example using Intel Speedstep to limit the CPU to a minimal frequency ?
      I'm sure the Linux Kernel can do this by default by changing values like max_freq or governor in the systree but can this be set through the web interface?
      I don't really want the CPU to consume too much if I don't really need all its power for simple things like file transfer etc..

      And the bios also doesn't have much options since its a Dell Optiplex, I can only enable or disable turboboost or speedstep, but not manually edit the clock speed.
    • You should be able to write scripts that change CPU freq and governor. And the run these scripts as tasks from the web GUI.

      But why not simply use the ondemand governor with low min and high max freq? Then it should be self regulated and work as you want it by itself.
      OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4
    • No idea. But is there really any need to mess with it?

      I just checked one of my OMV NAS. Odroid HC2. It is already, by default, set up with ondemand and low min and high max. I'm fine with that.

      adoby@nas0:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
      ondemand
      ondemand
      ondemand
      ondemand
      ondemand
      ondemand
      ondemand
      ondemand
      adoby@nas0:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_min_freq
      200000
      200000
      200000
      200000
      200000
      200000
      200000
      200000
      adoby@nas0:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
      1500000
      1500000
      1500000
      1500000
      2000000
      2000000
      2000000
      2000000
      adoby@nas0:~$
      OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4
    • There is no need to write a plugin. There is already cpufrequtil code in OMV. Just set the following settings in /etc/default/openmediavault

      OMV_CPUFREQUTILS_GOVERNOR="ondemand" or whatever governor you want
      OMV_CPUFREQUTILS_MINSPEED="600000" or whatever minimum speed you want
      OMV_CPUFREQUTILS_MAXSPEED="900000" or whatever maximum speed you want

      and then
      omv-mkconf cpufrequtils on omv 4.x
      omv-salt deploy run cpufrequtils on omv 5.x
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!