[ltp] Thinkpad T61, Ubuntu, cpu scaling

Schoap D linux-thinkpad@linux-thinkpad.org
Wed, 15 Jun 2011 18:27:00 +0200


--000e0cdff78a40c3a804a5c29f9d
Content-Type: text/plain; charset=ISO-8859-1

It seems it sticks at 1200 Mhz:

(powertop):
Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (100.0%)      Turbo Mode     0.0%
polling           0.0ms ( 0.0%)         2.00 Ghz     0.0%
C1 mwait          0.0ms ( 0.0%)         1.60 Ghz     0.0%
C2 mwait          0.0ms ( 0.0%)         1200 Mhz   100.0%
                                         800 Mhz     0.0%


2011/6/15 Richard Neill <rn214@richardneill.org>

>
>
> On 15/06/11 16:04, Schoap D wrote:
>
>> Hi,
>>
>> Afaik my system is capable of handling 2GHz, but when I set cpu scaling
>> on performance it displays only 1.20GHz. What is going wrong here?
>>
>
> It probably simply has scaled down. powertop and /proc/cpuinfo will tell
> you helpful things.
>
> As a quick check, run as many instances of
>     "nice yes >/dev/null  &"
> as you have CPU cores.
>
> (then, "killall yes" to stop it).
>
> This will load the CPU maximally, and you should see the freq go up.
>
> Richard
>
>
>
>
>
>> $ cpufreq-info
>> cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009
>> Report errors and bugs to cpufreq@vger.kernel.org
>> <mailto:cpufreq@vger.kernel.org>, please.
>>
>> analyzing CPU 0:
>>   driver: acpi-cpufreq
>>   CPUs which run at the same hardware frequency: 0 1
>>   CPUs which need to have their frequency coordinated by software: 0
>>   maximum transition latency: 10.0 us.
>>   hardware limits: 800 MHz - 2.00 GHz
>>   available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz,
>> 800 MHz
>>   available cpufreq governors: conservative, ondemand, userspace,
>> powersave, performance
>>   current policy: frequency should be within 800 MHz 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.00 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20
>> GHz:99.42%, 800 MHz:0.58%  (5)
>> analyzing CPU 1:
>>   driver: acpi-cpufreq
>>   CPUs which run at the same hardware frequency: 0 1
>>   CPUs which need to have their frequency coordinated by software: 1
>>   maximum transition latency: 10.0 us.
>>   hardware limits: 800 MHz - 2.00 GHz
>>   available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz,
>> 800 MHz
>>   available cpufreq governors: conservative, ondemand, userspace,
>> powersave, performance
>>   current policy: frequency should be within 800 MHz and 1.20 GHz.
>>                   The governor "userspace" may decide which speed to use
>>                   within this range.
>>   current CPU frequency is 800 MHz.
>>   cpufreq stats: 2.00 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20
>> GHz:10.23%, 800 MHz:89.77%  (5)
>>
>>  --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

--000e0cdff78a40c3a804a5c29f9d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

It seems it sticks at 1200 Mhz:<br><br>(powertop):<br>Cn=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0 Avg residency=A0=A0=A0=A0=A0=A0 P-states (frequ=
encies)<br>C0 (cpu running)=A0=A0=A0=A0=A0=A0=A0 (100.0%)=A0=A0=A0=A0=A0 Tu=
rbo Mode=A0=A0=A0=A0 0.0%<br>polling=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0.0ms ( =
0.0%)=A0=A0=A0=A0=A0=A0=A0=A0 2.00 Ghz=A0=A0=A0=A0 0.0%<br>
C1 mwait=A0=A0=A0=A0=A0=A0=A0=A0=A0 0.0ms ( 0.0%)=A0=A0=A0=A0=A0=A0=A0=A0 1=
.60 Ghz=A0=A0=A0=A0 0.0%<br>C2 mwait=A0=A0=A0=A0=A0=A0=A0=A0=A0 0.0ms ( 0.0=
%)=A0=A0=A0=A0=A0=A0=A0=A0 1200 Mhz=A0=A0 100.0%<br>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 800 Mhz=A0=A0=A0=A0 0.0%<br><br><br><div class=3D"=
gmail_quote">2011/6/15 Richard Neill <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:rn214@richardneill.org">rn214@richardneill.org</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class=3D"im"=
><br>
<br>
On 15/06/11 16:04, Schoap D wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Afaik my system is capable of handling 2GHz, but when I set cpu scaling<br>
on performance it displays only 1.20GHz. What is going wrong here?<br>
</blockquote>
<br></div>
It probably simply has scaled down. powertop and /proc/cpuinfo will tell yo=
u helpful things.<br>
<br>
As a quick check, run as many instances of<br>
 =A0 =A0 &quot;nice yes &gt;/dev/null =A0&amp;&quot;<br>
as you have CPU cores.<br>
<br>
(then, &quot;killall yes&quot; to stop it).<br>
<br>
This will load the CPU maximally, and you should see the freq go up.<br>
<br>
Richard<br>
<br>
<br>
<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class=3D"im"=
>
<br>
$ cpufreq-info<br>
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009<br>
Report errors and bugs to <a href=3D"mailto:cpufreq@vger.kernel.org" target=
=3D"_blank">cpufreq@vger.kernel.org</a><br></div>
&lt;mailto:<a href=3D"mailto:cpufreq@vger.kernel.org" target=3D"_blank">cpu=
freq@vger.kernel.org</a>&gt;, please.<div><div></div><div class=3D"h5"><br>
analyzing CPU 0:<br>
 =A0 driver: acpi-cpufreq<br>
 =A0 CPUs which run at the same hardware frequency: 0 1<br>
 =A0 CPUs which need to have their frequency coordinated by software: 0<br>
 =A0 maximum transition latency: 10.0 us.<br>
 =A0 hardware limits: 800 MHz - 2.00 GHz<br>
 =A0 available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz,<br>
800 MHz<br>
 =A0 available cpufreq governors: conservative, ondemand, userspace,<br>
powersave, performance<br>
 =A0 current policy: frequency should be within 800 MHz and 1.20 GHz.<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 The governor &quot;performance&quot; m=
ay decide which speed to use<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 within this range.<br>
 =A0 current CPU frequency is 1.20 GHz.<br>
 =A0 cpufreq stats: 2.00 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20<br=
>
GHz:99.42%, 800 MHz:0.58% =A0(5)<br>
analyzing CPU 1:<br>
 =A0 driver: acpi-cpufreq<br>
 =A0 CPUs which run at the same hardware frequency: 0 1<br>
 =A0 CPUs which need to have their frequency coordinated by software: 1<br>
 =A0 maximum transition latency: 10.0 us.<br>
 =A0 hardware limits: 800 MHz - 2.00 GHz<br>
 =A0 available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz,<br>
800 MHz<br>
 =A0 available cpufreq governors: conservative, ondemand, userspace,<br>
powersave, performance<br>
 =A0 current policy: frequency should be within 800 MHz and 1.20 GHz.<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 The governor &quot;userspace&quot; may=
 decide which speed to use<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 within this range.<br>
 =A0 current CPU frequency is 800 MHz.<br>
 =A0 cpufreq stats: 2.00 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20<br=
>
GHz:10.23%, 800 MHz:89.77% =A0(5)<br>
<br>
</div></div></blockquote><font color=3D"#888888">
-- <br>
The linux-thinkpad mailing list home page is at:<br>
<a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d" target=3D"_blank">http://mailman.linux-thinkpad.org/mailman/listinfo/lin=
ux-thinkpad</a><br>
</font></blockquote></div><br>

--000e0cdff78a40c3a804a5c29f9d--