[ltp] Thinkpad T61, Ubuntu, cpu scaling

Richard Neill linux-thinkpad@linux-thinkpad.org
Wed, 15 Jun 2011 17:15:35 +0100


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)
>