Skip to contentSkip to conversation

New: scaling_cur_freq very different from cpuinfo_cur_freq on Acer Predator Helios 500 PH517-61-R0GX

Bug 206517 [email protected] 1 participant 4 messages Feb 13, 2020 – Jun 29, 2020

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=206517

            Bug ID: 206517
           Summary: scaling_cur_freq very different from cpuinfo_cur_freq
                    on Acer Predator Helios 500 PH517-61-R0GX
           Product: Power Management
           Version: 2.5
    Kernel Version: 5.5.1
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: cpufreq
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

On an Acer Predator Helios 500 PH517-61-R0GX, scaling_cur_freq values can vary greatly from cpuinfo_cur_freq:

$ sudo cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
3200000
$ cat /sys/devices/system/cpu/*/cpufreq/scaling_cur_freq 
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955
548955

Unfortunately, the performance I'm seeing on this box while compiling stuff makes me think scaling_cur_freq is reporting correctly and cpuinfo_cur_freq is telling lies.

This might be related to bug 203035

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

[Bug 206517] scaling_cur_freq very different from cpuinfo_cur_freq on Acer Predator Helios 500 PH517-61-R0GX

https://bugzilla.kernel.org/show_bug.cgi?id=206517

Thomas Renninger ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Thomas Renninger ([email protected]) --- Best use:
cpupower monitor

You can also measure workloads, e.g. when compiling something:

cpupower monitor make

Not sure what distro you are using and what the name of the package or whether cpupower is packaged there... The sources, even it's userspace is part of the kernel git repo:
tools/power/cpupower

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw

[Bug 206517] scaling_cur_freq very different from cpuinfo_cur_freq on Acer Predator Helios 500 PH517-61-R0GX

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=206517

Zhang Rui ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |NEEDINFO
                 CC|                            |[email protected]

--- Comment #2 from Zhang Rui ([email protected]) ---
why I can not see this file /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq?

please run "turbostat -o ts.out sleep 10" while compiling, and see what frequency is reported there.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#3 lore raw

[Bug 206517] scaling_cur_freq very different from cpuinfo_cur_freq on Acer Predator Helios 500 PH517-61-R0GX

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=206517

Zhang Rui ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|[email protected] |[email protected]

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.