• CPU always running at the exact same frequency


    Hi,

    I own an Acer laptop with an i5-3210M (Ivy Bridge). It usually overheats and eats battery life but until now, I didn’t need to fix it. Now I need my battery and can’t use it for more than… 30min (windows makes it usable for at least 1h).

    I’ve realized that when I run watch grep \"cpu MHz\" /proc/cpuinfo I get always the same cpu frequency:

    cpu MHz         : 2494.338
    cpu MHz         : 2494.338
    cpu MHz         : 2494.338
    cpu MHz         : 2494.338
    

    I’m using cpupower and thermald as the wiki suggest for laptops, but nothing changes. I have enabled powersave governor in all four cores.

    Any help? I don’t know why the frequency is always the same either if I do nothing or run a big program.

    Notice that even if I change the governor to performance the frequency still the same instead of reaching 3100MHz as it should.

    Thanks in advance!

  • @fnc hm good watch…

    I have the same output with watch grep \"cpu MHz\" /proc/cpuinfo

    cpu MHz         : 2393.925
    cpu MHz         : 2393.925
    cpu MHz         : 2393.925
    cpu MHz         : 2393.925
    

    shows only this…

    But cpupower frequency-info shows:

    ....
    current CPU frequency: 1.60 GHz (asserted by call to kernel)
    ....
    

    try this:

    sudo watch -n 1 cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    sudo watch -n 1 cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

    I’m getting the following error:

    $ sudo cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
    cat: '/sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq': The file or folder does not exist
    (The error message is translated to English, might not be the exact same)

  • @fnc said in CPU always running at the exact same frequency:

    Acer laptop with an i5-3210M

    Is frequency scaling disabled in your BIOS? I don’t know the details of how Ivy Bridge implements it. But I would wager at the very least your BIOS must enable ACPI processor states.

    On factory BIOS settings that alter the normal CPU model frequency, it is not uncommon for these features to be disabled. It is the case with my Intel Core system. When I ask my BIOS to auto-tune my CPU or load one of the vendor OC profiles, frequency scaling is disabled.

  • @fnc what give you:

    ls /sys/devices/system/cpu/

    What i say is that /proc/cpuinfo is not showing current Mhz of your CPU’s! the file is still updating automaticly, but the Mhz do not change… but in reality it changes…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @Krugar said in CPU always running at the exact same frequency:

    @fnc said in CPU always running at the exact same frequency:

    Acer laptop with an i5-3210M

    Is frequency scaling disabled in your BIOS? I don’t know the details of how Ivy Bridge implements it. But I would wager at the very least your BIOS must enable ACPI processor states.

    On factory BIOS settings that alter the normal CPU model frequency, it is not uncommon for these features to be disabled. It is the case with my Intel Core system. When I ask my BIOS to auto-tune my CPU or load one of the vendor OC profiles, frequency scaling is disabled.

    I didn’t found any option regarding ACPI processor in the BIOS, but I can tell it does work on Windows (it shouldn’t be different for Linux, right?)

    @joekamprad said in CPU always running at the exact same frequency:

    @fnc what give you:

    ls /sys/devices/system/cpu/

    What i say is that /proc/cpuinfo is not showing current Mhz of your CPU’s! the file is still updating automaticly, but the Mhz do not change… but in reality it changes…

    I understood what you mean, but I can’t get the output for that command. ls command throw this output:

    $ ls /sys/devices/system/cpu/
    cpu0  cpu3     hotplug       kernel_max  offline   power
    cpu1  cpufreq  intel_pstate  microcode   online    present
    cpu2  cpuidle  isolated      modalias    possible  uevent
    
  • ls /sys/devices/system/cpu/cpu0/
    sorry… need to find what you get inside…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    ls /sys/devices/system/cpu/cpu0/
    sorry… need to find what you get inside…

    Don’t worry, you’re trying to help:

    $ ls /sys/devices/system/cpu/cpu0/
    cache    crash_notes       firmware_node  node0      thermal_throttle
    cpufreq  crash_notes_size  hotplug        power      topology
    cpuidle  driver            microcode      subsystem  uevent
    
  • @fnc

    ls -la /sys/devices/system/cpu/cpu0

  • @judd said in CPU always running at the exact same frequency:

    ls -la /sys/devices/system/cpu/cpu0

    $ ls -la /sys/devices/system/cpu/cpu0
    total 0
    drwxr-xr-x  9 root root    0 nov  8 11:13 .
    drwxr-xr-x 12 root root    0 nov  8 11:13 ..
    drwxr-xr-x  7 root root    0 nov  8 11:13 cache
    lrwxrwxrwx  1 root root    0 nov  8 11:13 cpufreq -> ../cpufreq/policy0
    drwxr-xr-x  8 root root    0 nov  8 11:31 cpuidle
    -r--------  1 root root 4096 nov  8 11:31 crash_notes
    -r--------  1 root root 4096 nov  8 11:31 crash_notes_size
    lrwxrwxrwx  1 root root    0 nov  8 11:38 driver -> ../../../../bus/cpu/drivers/processor
    lrwxrwxrwx  1 root root    0 nov  8 11:38 firmware_node -> ../../../LNXSYSTM:00/LNXCPU:00
    drwxr-xr-x  2 root root    0 nov  8 11:31 hotplug
    drwxr-xr-x  2 root root    0 nov  8 11:31 microcode
    lrwxrwxrwx  1 root root    0 nov  8 11:38 node0 -> ../../node/node0
    drwxr-xr-x  2 root root    0 nov  8 11:31 power
    lrwxrwxrwx  1 root root    0 nov  8 11:13 subsystem -> ../../../../bus/cpu
    drwxr-xr-x  2 root root    0 nov  8 11:31 thermal_throttle
    drwxr-xr-x  2 root root    0 nov  8 11:31 topology
    -rw-r--r--  1 root root 4096 nov  8 11:31 uevent
    
  • all good… but one path deeper ;)

    ls /sys/devices/system/cpu/cpu0/cpufreq
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    all good… but one path deeper ;)

    ls /sys/devices/system/cpu/cpu0/cpufreq
    

    https://github.com/konkor/cpufreq/issues/37

  • @judd said in CPU always running at the exact same frequency:

    https://github.com/konkor/cpufreq/issues/37

    is to much ubuntualike what they discuss there… ;)

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    is to much ubuntualike what they discuss there…

    Yes of course, only to go debugging and always reading and reading comes some clue ;)

  • for gnome you can install gnome-shell-extension-cpufreq
    0_1510138769784_Bildschirmfoto vom 2017-11-08 11-58-43.png

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    all good… but one path deeper ;)

    ls /sys/devices/system/cpu/cpu0/cpufreq
    
    $ ls /sys/devices/system/cpu/cpu0/cpufreq
    affected_cpus               related_cpus                 scaling_governor
    cpuinfo_max_freq            scaling_available_governors  scaling_max_freq
    cpuinfo_min_freq            scaling_cur_freq             scaling_min_freq
    cpuinfo_transition_latency  scaling_driver               scaling_setspeed
    
  • strange… but try:

    sudo watch -n 1 cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq

    For me it looks like that:

    ls /sys/devices/system/cpu/cpu0/cpufreq                                                                         2 ↵
    affected_cpus     cpuinfo_min_freq            scaling_available_frequencies  scaling_governor  stats
    bios_limit        cpuinfo_transition_latency  scaling_available_governors    scaling_max_freq
    cpuinfo_cur_freq  freqdomain_cpus             scaling_cur_freq               scaling_min_freq
    cpuinfo_max_freq  related_cpus                scaling_driver                 scaling_setspeed
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    for gnome you can install gnome-shell-extension-cpufreq
    0_1510138769784_Bildschirmfoto vom 2017-11-08 11-58-43.png

    Loading 235%? It had gone up to nearly 400% :sunglasses:

    0_1510139116881_68037dce-a72f-46b1-b57a-7c76cff0452e-image.png

    @joekamprad said in CPU always running at the exact same frequency:

    sudo watch -n 1 cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq

    That watch command is showing some frequencies moving, probably correct, definitely the same as the gnome extension.

    $ ls /sys/devices/system/cpu/cpu0/cpufreq
    affected_cpus               related_cpus                 scaling_governor
    cpuinfo_max_freq            scaling_available_governors  scaling_max_freq
    cpuinfo_min_freq            scaling_cur_freq             scaling_min_freq
    cpuinfo_transition_latency  scaling_driver   
    
  • su
    for file in /sys/bus/cpu/devices/cpu0/cpufreq/*; do echo "$file: $(cat $file)" ; done
    

    is what i was searching before to get the info ;)

    Yes what you get looks kinda strange…

    You may try:

    i7z
    i7z is an i7 (and now i3, i5) CPU reporting tool for Linux. It can be launched from a Terminal with the command i7z or as GUI with i7z-gui.
    yaourt -S i7z i7z-gui

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in CPU always running at the exact same frequency:

    su
    for file in /sys/bus/cpu/devices/cpu0/cpufreq/*; do echo “$file: $(cat $file)” ; done

    is what i was searching before to get the info
    Yes what you get looks kinda strange…
    You may try:
    i7z
    i7z is an i7 (and now i3, i5) CPU reporting tool for Linux. It can be launched from a Terminal with the command i7z or as GUI with i7z-gui.
    yaourt -S i7z i7z-gui

    # for file in /sys/bus/cpu/devices/cpu0/cpufreq/*; do echo "$file: $(cat $file)" ; done
    /sys/bus/cpu/devices/cpu0/cpufreq/affected_cpus: 0
    /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_max_freq: 3100000
    /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_min_freq: 1200000
    /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_transition_latency: 4294967295
    /sys/bus/cpu/devices/cpu0/cpufreq/related_cpus: 0
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_available_governors: performance powersave
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_cur_freq: 2893571
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_driver: intel_pstate
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_governor: powersave
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_max_freq: 3100000
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_min_freq: 1200000
    /sys/bus/cpu/devices/cpu0/cpufreq/scaling_setspeed: <unsupported>
    

    I had i7z installed, it shows values that seems to be ok.
    I’ve noticed there is no fan1 when I runsensors, probably this is also helping my laptop to overheat.

cpu11 running11 exact1 frequency3 Posts 66Views 734
Log in to reply