CPU frequency decreases under load, rises when idle
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CPU frequency decreases under load, rises when idle
Hello all, I have a strange problem. As it says in the title, my cpu frequency will decrease when the system is under load. The problem seems to be that the BIOS reports different max cpu freqs depending on whether the system is under load. The details given below show the "performance" governor but I get similar behaviour with userspace and ondemand. In all cases, I cannot override the BIOS limit if that is set to the low value (see below).
I get the same problem using either 3.0.0-1-amd64 or 3.2.0-2-amd64 kernels. I have just updated my BIOS and saw no difference. I have tried disabling dynamic frequency by disabling Intel SpeedStep Technology in the BIOS. I got a similar situation. In this case, the CPU was reporting a constant frequency of 2.67 GHz but minor tasks (eg firefox, conky, emacs) would occupy >20% of CPU and the CPU usage would quickly reach 99%. I mean that before running "stress" or similar, firefox was sitting happily at ~6% CPU, As soon as I started stressing the system, firefox shot up to ~20% despite the CPU freq apparently not changing. This seems to imply that the CPU freq is misreported and disabling Intel SpeedStep does not stop the decrease in freq, just stops the system from reporting it.
So, either using dynamic frequency or not, my system becomes unusable when even under minor processor loads. Does anyone have any ideas how to fix this? I seem to recall there are known regressions in the 3.0-3.2 kernels that could affect CPU frequency control. Anybody know if that is true? Should I just wait for 3.3?
System Specs:
Dell M4500
Intel Core i7 M 620 @ 2.67GHz
4GB RAM
LMDE, 3.2.0-2-amd64
BIOS: Dell Inc. A10 11/30/2011
Details when using "performace" governor: 1. System idle:
cpufreq-info output (for one processor):
Code:
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 2.67 GHz
available frequency steps: 2.67 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: userspace, conservative, powersave, ondemand, performance
current policy: frequency should be within 1.20 GHz and 2.27 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.27 GHz.
cpufreq stats: 2.67 GHz:64.78%, 2.67 GHz:0.81%, 2.53 GHz:1.03%, 2.40 GHz:0.45%, 2.27 GHz:1.38%, 2.13 GHz:1.25%, 2.00 GHz:0.66%, 1.87 GHz:0.48%, 1.73 GHz:0.43%, 1.60 GHz:1.20%, 1.47 GHz:0.80%, 1.33 GHz:0.77%, 1.20 GHz:25.95% (450)
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 2.67 GHz
available frequency steps: 2.67 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: userspace, conservative, powersave, ondemand, performance
current policy: frequency should be within 1.20 GHz and 1.20 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.20 GHz.
cpufreq stats: 2.67 GHz:60.05%, 2.67 GHz:0.75%, 2.53 GHz:2.21%, 2.40 GHz:0.98%, 2.27 GHz:2.46%, 2.13 GHz:1.18%, 2.00 GHz:0.64%, 1.87 GHz:0.47%, 1.73 GHz:0.42%, 1.60 GHz:1.14%, 1.47 GHz:0.77%, 1.33 GHz:0.73%, 1.20 GHz:28.19% (462)
Hi, TobiSGD, thanks for the reply. Well, I have checked the temperatures. With a previous kernel I was having problems with the fan control daemon so I always keep an eye on them.
I would consider those temperatures much to high, 60°C in idle-state would really bother me. I would recommend to clean the cooling system and may be replace the thermal paste.
Well, yes, that's what I thought. However the temperature range reported shows high at +95.0°. It seems very high to me too but I believe these chips are designed to run much hotter than older models.
In any case, you would appear to be right. It looks like the system lowers the clock speed at a specific threshold. I still don't get why this would be done when the temp is so far from the "high" temperature.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
What temperature does the "Motherboard Sensor" give?
I ask because on my system the threshold for the MB is 70C (and CPU 90C) and the CPU and MB sensors are usually within 10C of one another.
That high temperature is only 10° below the value when the system does an emergency shut down. It may be possible that the laptop manufacturer has implemented a lower threshold into the BIOS to protect parts that are near the CPU.
What temperature does the "Motherboard Sensor" give?
I ask because on my system the threshold for the MB is 70C (and CPU 90C) and the CPU and MB sensors are usually within 10C of one another.
Dunno, cant get info for that one. Getting sensors to work on my laptop is complicated:
That high temperature is only 10° below the value when the system does an emergency shut down. It may be possible that the laptop manufacturer has implemented a lower threshold into the BIOS to protect parts that are near the CPU.
Yes, that seems quite likely. Well %&#@! I'll have to open it up and check the cpu I guess.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.