Как настроить регулятор производительности cpufreq?

Я нахожусь на Ubuntu 13.04 64-битной. Я слышал, что настройка регулятора cpufreq на производительность, в общем, повысит производительность. К сожалению, я новичок в этом, и я не уверен, как бы я поступил так. Если я сделаю sudo cpufreq-set -c 0 -g performance, то получу:

Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
   for example because of hardware which cannot be set to a specific frequency
   or because the userspace governor isn't loaded?

cpufreq-info даст мне:

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.

Это вывод cat / proc / cpuinfo

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 15
model       : 4
model name  : Intel(R) Pentium(R) D CPU 2.80GHz
stepping    : 4
microcode   : 0x6
cpu MHz     : 2800.026
cache size  : 1024 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips    : 5600.05
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 15
model       : 4
model name  : Intel(R) Pentium(R) D CPU 2.80GHz
stepping    : 4
microcode   : 0x6
cpu MHz     : 2800.026
cache size  : 1024 KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips    : 5600.05
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

любая помощь будет оценена.

4
задан 5 November 2014 в 16:45

3 ответа

Могут быть настройки BIOS, которые отключают масштабирование частоты процессора ... Я не знаю конкретно о P4, но я знаю, что на некоторых AMD они могут быть установлены на максимальную частоту без масштабирования (возможно, отключение Cool ' n'quiet или похожий в BIOS?)

Также некоторые ноутбуки могут отключать масштабирование частоты и работать только на самой низкой скорости процессора, если батарея не установлена ​​(Thinkpad), из-за того, что адаптер переменного тока не может обеспечить достаточное питание для полной частоты ...

Что-то проверить, прежде чем отказаться от масштабирования частоты, особенно если ваш процессор говорит, что это поддерживается.

0
ответ дан 5 November 2014 в 16:45

Я подозреваю, что аппаратное обеспечение P4 не поддерживает тип масштабирования процессора, который вы пытаетесь установить. По сути, ваш процессор P4 уже работает на полной скорости.

Вы можете использовать команду cpufreq-info, чтобы получить информацию о возможностях вашего оборудования. Он скажет вам действительные настройки, которые вы можете использовать. В системе P4 я получаю это:

cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.

В более новой системе Core2Duo я получаю это:

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
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 2.17 GHz
  available frequency steps: 2.17 GHz, 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1000 MHz and 2.17 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1000 MHz.
  cpufreq stats: 2.17 GHz:4.03%, 2.00 GHz:0.01%, 1.83 GHz:0.01%, 1.67 GHz:0.01%, 1.50 GHz:0.01%, 1.33 GHz:5.14%, 1000 MHz:90.80%  (28070386)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 2.17 GHz
  available frequency steps: 2.17 GHz, 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1000 MHz and 2.17 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1000 MHz.
  cpufreq stats: 2.17 GHz:2.88%, 2.00 GHz:0.00%, 1.83 GHz:0.00%, 1.67 GHz:0.01%, 1.50 GHz:0.01%, 1.33 GHz:1.87%, 1000 MHz:95.23%  (3085131)
0
ответ дан 5 November 2014 в 16:45

Нет ошибок, чтобы сообщить здесь.

Ваш процессор выглядит как P4 D 820 , который не имеет никаких скоростных шагов. Он также не имеет Turboboost. Так что cpufreq ничего не может сделать.

Лучше всего получить максимальную отдачу от этого процессора, выполнив разгон в BIOS. :)

0
ответ дан 5 November 2014 в 16:45

Другие вопросы по тегам:

Похожие вопросы: