You are not logged in.
Pages: 1
I have an issue with frequency scaling on the 4th gen 4500U intel processor in my Sony Vaio Pro.
Using the simple patch mentioned in this blog: http://elouisyoung.blogspot.nl/2013/07/ … -with.html
the CPU correctly functions at 1.8Ghz per default (according to `cat /proc/cpuinfo) and scales up on heavy duty work upito the 3.0Ghz turbo frequency.
Howerver, once the heavy jobs are done, the CPU won't scale back to 1.8 (or lower, as should actually be possible); /proc/cpuinfo will still report 2.8Ghz for all cores.
Anyone suggestions to a possible diagnosis or solution?
Offline
I've been having this same issue, and rebooting temporarily fixes the issue.
Offline
What happens if you disable p-state and use the ondemand governor as temporary solution?
Offline
Doesn't matter what cpuinfo reports, the CPU will be in the c7 state most of the time anyway, where the frequency is 0. Freq scaling is basically an outdated concept on modern Intel CPUs.
Offline
Doesn't matter what cpuinfo reports, the CPU will be in the c7 state most of the time anyway, where the frequency is 0. Freq scaling is basically an outdated concept on modern Intel CPUs.
Ah, Gusar is right. Use powertop or i7z to check p-states.
Offline
Look here: https://plus.google.com/114657443111661 … Ln9T4ehywL
Today, things are much more complex in several key ways.
First of all, and this is important and different from 10 years ago... no matter which P state you ask for, when a logical processor is idle (C state), its frequency is typically 0. The exception to this "typically" is the lightest of the C states (C1), where the frequency is the lowest frequency the CPU supports, and not zero. (but going into C1 is pretty rare, and very short lived, so for this posting, I'm going to ignore C1).
A second important aspect is that of "coordination". For practical reasons, on current Intel processors, all the cores in a package share the same voltage. And because running at a lower frequency than possible at a certain voltage is inefficient, all the cores will also share the same clock frequency at any one time. Of course, except the cores that are idle, because their frequency is zero!
I think this means that on a Haswell CPU, scaling down is unnecessary, since simply switching to C0 makes your CPU save as much power as it possibly can.
Offline
since simply switching to C0 makes your CPU save as much power as it possibly can.
Actually, C0 is the state with the most power consumption . It's the active state, where the processor is actually doing stuff. Then you have the idle states, C1-C7, the higher (or deeper, as is the usual terminology here) you go, the less power consumption there is. Haswell will spend most of the idle time in C7, a bit in C1, others pretty much aren't used. The turbostat tool, part of the kernel source, is very useful for tracking C states.
Offline
Hi,
is there any update on this?
Is there any bug number in kernel?
I have Lenovo T440s with Haswell, same issue.
Thanks.
Offline
bio: If I understand this correctly, this is not an issue.
I tried setting the max. frequency with cpupower and monitored the power consumption for a while, using powertop.
Well, at least for me, there is no noticeable difference. And both cores stay in C7 around 90% of the time as I am writing this, so I guess everything is working
Offline
Not an issue... use the i7z-git package from the AUR for haswell processors. My brand new 4130T never scales the frequency down, but stays in C7 state most of the time.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
It's an issue.
there is higher power consumption.
Offline
It's an issue.
there is higher power consumption.
Open an upstream bug report.
EDIT: https://bugzilla.kernel.org/show_bug.cgi?id=93521#c10
Last edited by graysky (2015-03-14 11:48:02)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
bio wrote:It's an issue.
there is higher power consumption.Open an upstream bug report.
already opened:
https://bugzilla.kernel.org/show_bug.cgi?id=65301
https://bugzilla.kernel.org/show_bug.cgi?id=65591
Offline
Those bugs are about different things. The first one is about an issue after suspend.
In the second one, the person isn't getting as much deep C-states, but that's not necessarily a pstate bug, but something else on his machine, his DE doing lots of stuff or something else hogging the CPU. For example, compare his figures to mine.
From the bug:
cor CPU %c0 GHz TSC SMI %c1 %c3 %c6 %c7 CTMP PTMP %pc2 %pc3 %pc6 %pc7 %pc8 %pc9 %pc10 Pkg_W Cor_W GFX_W
5.40 0.80 2.30 0 14.95 2.12 0.34 77.19 41 42 10.70 0.00 0.00 0.00 0.00 0.00 0.00 4.04 0.21 0.22
0 0 7.04 0.80 2.30 0 12.98 2.00 0.20 77.78 41 42 10.70 0.00 0.00 0.00 0.00 0.00 0.00 4.04 0.21 0.22
0 1 4.29 0.80 2.30 0 15.73
1 2 6.16 0.80 2.30 0 14.52 2.24 0.49 76.60 40
1 3 4.12 0.80 2.30 0 16.55
My machine:
cor CPU %c0 GHz TSC SMI %c1 %c3 %c6 %c7 CTMP PTMP %pc2 %pc3 %pc6 %pc7 Pkg_W Cor_W GFX_W
0.09 3.55 2.89 0 1.00 4.44 0.02 94.45 28 30 96.11 0.00 0.00 0.00 7.65 0.17 0.00
0 0 0.08 3.55 2.89 0 3.07 17.76 0.00 79.09 28 30 96.11 0.00 0.00 0.00 7.65 0.17 0.00
1 1 0.06 3.53 2.89 0 0.54 0.00 0.00 99.40 25
2 2 0.11 3.55 2.89 0 0.32 0.00 0.06 99.51 24
3 3 0.12 3.57 2.89 0 0.07 0.00 0.00 99.81 28
In contrast to that bug, I get very little C0 and a lot of C7.
But what this thread is about is how frequency scaling differs between ondemand and pstate. Ondemand was doing unnecessary work, it's not needed to scale the freq all the time, because it's the C-states that power saving comes from. So the "my CPU is always at max freq" thing is indeed not an issue. The CPU is *not* at the max freq all the time, it's only at the shown freq in the C0 state. And on a working system, the C0 state will be used less than 1% of the time.
Last edited by Gusar (2013-12-04 11:12:03)
Offline
Ok. So i was wrong about the cause.
Offline
@bio: does installing and activating tlp help?
It helped with my t440p (down to 17W on battery, from 45W). A lot of C7 state now
Speak when you are angry and you will make the best speech you'll ever regret.
Offline
Still 17W? I have 10, without tlp.
And 70 - 80% C7 state.
Offline
Well, had some processes running then
It's now down to 15W with wifi on and firefox running.
Speak when you are angry and you will make the best speech you'll ever regret.
Offline
Pages: 1