FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    CPU Governors - where is ONDEMAND?

    Anyone else noticed this?

    3.11.6-301.fc20.x86_64
    Code:
    [pmiller@fettel ~]$ grep CONFIG_CPU_FREQ_GOV /boot/ /boot/config-3.11.6-301.fc20.x86_64
    grep: /boot/: Is a directory
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_COMMON=y
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_POWERSAVE=y
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_USERSPACE=y
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_ONDEMAND=y
    /boot/config-3.11.6-301.fc20.x86_64:CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
    And...
    Code:
    [pmiller@fettel ~]$ grep ONDEMAND /boot/config-3.11.6-301.fc20.x86_64
    CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
    CONFIG_CPU_FREQ_GOV_ONDEMAND=y
    But....
    Code:
    [pmiller@fettel ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
    performance powersave
    and..
    Code:
    [pmiller@fettel ~]$ sudo cpupower -c 0 frequency-info
    analyzing CPU 0:
      driver: intel_pstate
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 0.97 ms.
      hardware limits: 1.60 GHz - 3.70 GHz
      available cpufreq governors: performance, powersave
      current policy: frequency should be within 1.60 GHz and 3.70 GHz.
                      The governor "powersave" may decide which speed to use
                      within this range.
      current CPU frequency is 3.17 GHz (asserted by call to hardware).
      boost state support:
        Supported: yes
        Active: yes
        3400 MHz max turbo 4 active cores
        3500 MHz max turbo 3 active cores
        3600 MHz max turbo 2 active cores
        3700 MHz max turbo 1 active cores
    On the same desktop pc, running kernel-3.11.6-100.fc18.x86_64, the ondemand governor is recognized and the active default.
    Last edited by PabloTwo; 28th October 2013 at 04:37 PM.

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    My only guess is that ondemand.h failed to compile on the fc20 kernel.
    Code:
    [pmiller@fettel ~]$ locate ondemand
    /usr/src/kernels/3.11.6-301.fc20.x86_64/include/config/cpu/freq/default/gov/ondemand.h
    /usr/src/kernels/3.11.6-301.fc20.x86_64/include/config/cpu/freq/gov/ondemand.h
    Could I attempt to build a kmod from the ondemand.h file? But then, if it did compile as a built-in, then a kmod would just conflict with it, right?, and the problem lies somewhere else.

  3. #3
    leigh123linux Guest

    Re: CPU Governors - where is ONDEMAND?

    Works fine on AMD

    Code:
    $ cpupower  frequency-info
    analyzing CPU 0:
      driver: acpi-cpufreq
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 4.0 us.
      hardware limits: 1.40 GHz - 4.00 GHz
      available frequency steps: 4.00 GHz, 3.40 GHz, 2.80 GHz, 2.10 GHz, 1.40 GHz
      available cpufreq governors: conservative, userspace, powersave, ondemand, performance
      current policy: frequency should be within 1.40 GHz and 4.00 GHz.
                      The governor "ondemand" may decide which speed to use
                      within this range.
      current CPU frequency is 1.40 GHz.
      boost state support:
        Supported: yes
        Active: yes
    Code:
    $ uname -r
    3.11.6-301.fc20.x86_64
    Code:
    $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
    conservative userspace powersave ondemand performance

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    I suppose it could also be an issue with the intel-pstate driver on this kernel and intel cpu. I didn't notice whether ondemand was working or not on the original install kernel-3.11.0-300.fc20.x86_64, as I did a full update after install almost right away and didn't notice the kicked up cpu freq boost until I got conky installed and up and running.

    Other than this minor issue, F20 is running rock solid for me, though I'm still trying to resolve another issue of why after booting and logging in to Xfce session I land at ~/Desktop instead of just ~/. I just cleared my "saved sessions" so I'll see on my next login if that is fixed or no.

    Edit: No joy!
    Code:
    [pmiller@fettel Desktop]$ cd
    [pmiller@fettel ~]$
    Edit2: Joy! A log-out/log-in didn't do it. A reboot did.
    Last edited by PabloTwo; 28th October 2013 at 06:17 PM.

  5. #5
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    380
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    This may not be related at all, but it sounds suspiciously like something has happened.

    On Fedora 18, recent update to kernel 3.11.4-101.fc18.x86_64, on reboot, left my AMD CPU running at full speed whereas all previous kernels always automatically turned on cpu frequency scaling.

    The same kernel version, 3.11.4, but on Fedora 19 running on the same PC, ran normally with CPU frequency scaling working as normal, coming up in ondemand mode.

    To fix this, I had to manually load the powernow-k8 module on Fedora 18, then all was working normal again.

  6. #6
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    I think it"s because "driver: intel_pstate"

    I have same thing:
    Code:
    [dominique@host ~]$  cpupower  frequency-info
    analyse du CPU 0 :
      pilote : intel_pstate
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 0.97 ms.
      limitation matérielle : 800 MHz - 2.30 GHz
      régulateurs disponibles : performance, powersave
      tactique actuelle : la fréquence doit être comprise entre 800 MHz et 2.30 GHz.
                      Le régulateur "powersave" est libre de choisir la vitesse
                      dans cette plage de fréquences.
      boost state support:
        Supported: no
        Active: no
        25500 MHz max turbo 4 active cores
        25500 MHz max turbo 3 active cores
        25500 MHz max turbo 2 active cores
        25500 MHz max turbo 1 active cores
    [dominique@host ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
    performance powersave
    [dominique@host ~]$
    intel_pstate is a new driver introduced in F19, and I think there is no "ondemand governor" available in this driver.

    look here : https://bbs.archlinux.org/viewtopic.php?pid=1294415 #post15
    Last edited by chepioq; 28th October 2013 at 09:09 PM.

  7. #7
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    Yes, you're right. Checking on one of my 3 F18 installs, it's using the acpi_cpufreq driver. But the link you posted made for some interesting reading, and the new intel_pstate driver using the powersave governor does seem to make F20 seem a bit snappier than my F18 installs.

    As the link suggested, using intel_pstate=disable as a kernel param will force the kernel to use the "old" acpi_cpufreq driver.

  8. #8
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    Quote Originally Posted by PabloTwo
    As the link suggested, using intel_pstate=disable as a kernel param will force the kernel to use the "old" acpi_cpufreq driver.
    for test I add intel_pstate=disable on kernel line in grub, and that work :
    Code:
    [dominique@host ~]$ cpupower  frequency-info
    analyse du CPU 0 :
      pilote : acpi-cpufreq
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 10.0 us.
      limitation matérielle : 800 MHz - 2.30 GHz
      plage de fréquence : 2.30 GHz, 1.80 GHz, 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz
      régulateurs disponibles : conservative, userspace, powersave, ondemand, performance
      tactique actuelle : la fréquence doit être comprise entre 800 MHz et 2.30 GHz.
                      Le régulateur "ondemand" est libre de choisir la vitesse
                      dans cette plage de fréquences.
      la fréquence actuelle de ce CPU est 800 MHz.
      boost state support:
        Supported: no
        Active: no
        25500 MHz max turbo 4 active cores
        25500 MHz max turbo 3 active cores
        25500 MHz max turbo 2 active cores
        25500 MHz max turbo 1 active cores
    If you want that permanent, you can add this option in /etc/default/grub, in line begin by "GRUB_CMDLINE_LINUX=" and refresh grub with this command in root
    Code:
    grub2-mkconfig -o /boot/grub2/grub.cfg

  9. #9
    Join Date
    May 2011
    Location
    Asheville, NC
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    Hey all, I wanted to point you guys at this post from the Arch Linux forums talking about the new intel_pstate driver. It attempts to explain why this driver only uses two governors and why that's plenty enough.

    As far as power saving, I find that I have better results with intel_pstate using performance than I do with acpi_cpufreq's ondemand

  10. #10
    Join Date
    Jul 2008
    Posts
    1,347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    I don't really see the sense in replacing intel_pstate with the generic ondemand.
    pstate replaces that and does a much better job of it. The only reasons I could see
    to replace pstate, is if you want to force your cpu to run all out or minimally all of the
    time, and even then, you can configure pstate to do either of those through the /sys/
    interface for it.

    This sounds like a case of the 'not familiar, must be bad' logic.

  11. #11
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    I'm sold on the benefits and advantages of the intel_pstate driver over the old acpi_cpufreq driver after having read what I've read about it and seeing the results in action on my F20 install. I even gave at shot, after having downloaded the latest intel_pstate.c file, at compiling that as a kernel module for my F18 installs, without success. I'm now thinking the easier way would be to just do a rpmbuild --rebuild of one of the F19 or F20 kernels in F18 to get intel_pstate on board in F18.

    Note: running "cpupower -c <whatever> frequency-info" as non-root will not show proper and legitimate output for the "boost state support:" frequencies.
    Code:
      boost state support:
        Supported: yes
        Active: yes
        25500 MHz max turbo 4 active cores
        25500 MHz max turbo 3 active cores
        25500 MHz max turbo 2 active cores
        25500 MHz max turbo 1 active cores
    You must run the command as root to get the proper output:
    Code:
      boost state support:
        Supported: yes
        Active: yes
        3400 MHz max turbo 4 active cores
        3500 MHz max turbo 3 active cores
        3600 MHz max turbo 2 active cores
        3700 MHz max turbo 1 active cores

  12. #12
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    Quote Originally Posted by PabloTwo
    I even gave at shot, after having downloaded the latest intel_pstate.c file, at compiling that as a kernel module for my F18 installs, without success. I'm now thinking the easier way would be to just do a rpmbuild --rebuild of one of the F19 or F20 kernels in F18 to get intel_pstate on board in F18.
    Which is what I did this morning. Using the latest F19 SRPM from koji, I did the rebuilt on my desktop pc install of F18.x86_64. The other F18.x86_64 install is on my HP laptop. The rebuild went fine, spitting out these rpms.
    Code:
    $ ll Documents/RPMS/Rebuilt-F19/ | awk '{print $9}'
    
    kernel-3.11.6-201.fc18.x86_64.rpm
    kernel-devel-3.11.6-201.fc18.x86_64.rpm
    kernel-headers-3.11.6-201.fc18.x86_64.rpm
    kernel-modules-extra-3.11.6-201.fc18.x86_64.rpm
    kernel-tools-3.11.6-201.fc18.x86_64.rpm
    kernel-tools-libs-3.11.6-201.fc18.x86_64.rpm
    kernel-tools-libs-devel-3.11.6-201.fc18.x86_64.rpm
    perf-3.11.6-201.fc18.x86_64.rpm
    python-perf-3.11.6-201.fc18.x86_64.rpm
    Since I use kmod-nvidia without akmod-nviida on the desktop pc, which would be problematical, I decided to install the rebuilt kernel and kernel-modules-extra packages on the laptop, which just uses intel HD 4000 graphics. The install on the laptop went fine, but the laptop is a W8/F18 dual-boot setup using UEFI and Secure Boot. The new kernel failed to boot due to having an invalid X .509 signature/certificate (Secure Boot in action).

    So, into the BIOS (firmware) to disable Secure Boot. Trying again with the new kernel, it booted up and runs just fine. The intel_pstate driver seems quite happy on this system.
    Code:
    $ cat /proc/cpuinfo | head -20 | grep "model name"
    model name	: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
    Cpu temps are at least as low, if not lower, than when running with the acpi_cpufreq driver and the performance is much better.
    Code:
    ]$ sudo cpupower -c 0 frequency-info
    analyzing CPU 0:
      driver: intel_pstate
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 0.97 ms.
      hardware limits: 1.20 GHz - 3.10 GHz
      available cpufreq governors: performance, powersave
      current policy: frequency should be within 1.20 GHz and 3.10 GHz.
                      The governor "powersave" may decide which speed to use
                      within this range.
      current CPU frequency is 1.93 GHz (asserted by call to hardware).
      boost state support:
        Supported: yes
        Active: yes
        2900 MHz max turbo 4 active cores
        2900 MHz max turbo 3 active cores
        2900 MHz max turbo 2 active cores
        3100 MHz max turbo 1 active cores

  13. #13
    Join Date
    Mar 2006
    Posts
    2,211
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    So what determines whether you get the pstate driver or the old acpi-cpufreq driver? My T400 is using the acpi_cpufreq driver.
    Is the pstate driver for 'i' series and later intel processors?
    jbkt23
    Thinkpads Depends on era T23 - X2xx
    AMD & Intel Boxes

  14. #14
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    Quote Originally Posted by jbkt23
    So what determines whether you get the pstate driver or the old acpi-cpufreq driver? My T400 is using the acpi_cpufreq driver.
    Is the pstate driver for 'i' series and later intel processors?
    What release of Fedora are you running and which cpu do you have?

  15. #15
    Join Date
    Mar 2006
    Posts
    2,211
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Governors - where is ONDEMAND?

    F20, p8400
    jbkt23
    Thinkpads Depends on era T23 - X2xx
    AMD & Intel Boxes

Page 1 of 2 12 LastLast

Similar Threads

  1. How to extend battery life by automatically changing cpu governors.
    By dd_wizard in forum Guides & Solutions (Not For Questions)
    Replies: 2
    Last Post: 3rd April 2013, 06:54 PM
  2. No CPU governors available??
    By Speeddymon in forum Using Fedora
    Replies: 4
    Last Post: 25th June 2012, 03:52 AM
  3. How to properly switch between cpupower governors?
    By duffman128 in forum Using Fedora
    Replies: 1
    Last Post: 25th June 2012, 01:28 AM
  4. klaptop governors and centrino cpu
    By holr in forum Hardware
    Replies: 4
    Last Post: 19th July 2005, 09:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •