модуль производительности cpufreq?

3421
Hei

Я не вижу модуля производительности cpufreq:

$ ll /lib/modules/2.6.32-358.2.1.el6.x86_64/kernel/drivers/cpufreq/ total 88<br/> -rwxr--r--. 1 root root 20576 Mar 12 18:26 cpufreq_conservative.ko -rwxr--r--. 1 root root 27096 Mar 12 18:26 cpufreq_ondemand.ko -rwxr--r--. 1 root root 5336 Mar 12 18:26 cpufreq_powersave.ko -rwxr--r--. 1 root root 14120 Mar 12 18:26 cpufreq_stats.ko -rwxr--r--. 1 root root 10920 Mar 12 18:26 freq_table.ko 

Затем дальнейший поиск в Интернете показывает, что он должен быть частью ядра, а не загружаемого модуля (для CentOS 5)?
http://lists.centos.org/pipermail/centos/2010-July/097217.html

Я сейчас на CentOS 6.

Значит ли это, что мне нужно перекомпилировать ядро ​​из исходного кода, чтобы включить производительность cpufreq?

Обновление № 1: По некоторым причинам я не вижу папку (упомянутый Дэвидом) в CentOS 6:

$ ll /sys/devices/system/cpu/cpu0/ total 0<br/> drwxr-xr-x. 6 root root 0 Mar 14 23:41 cache drwxr-xr-x. 6 root root 0 Mar 15 01:29 cpuidle -r--------. 1 root root 4096 Mar 14 23:41 crash_notes drwxr-xr-x. 2 root root 0 Mar 15 01:29 microcode lrwxrwxrwx. 1 root root 0 Mar 15 01:29 node0 -> ../../node/node0 drwxr-xr-x. 2 root root 0 Mar 15 01:29 thermal_throttle drwxr-xr-x. 2 root root 0 Mar 14 23:41 topology 

Обновление № 2:

$ 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? 
3
Связанный: [Регулятор производительности для cpufreq, кажется, не ведет себя так, как рекламируется] (http://askubuntu.com/questions/179543/the-performance-governor-for-cpufreq-doesnt-seem-to-behave-as- рекламируется) (в AskUbuntu) Breakthrough 11 лет назад 0

2 ответа на вопрос

2
Queasy

Even if you see it from command below:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 

it doesn't mean it's going to work.

It requires that the kernel is compiled with the cpufreq_performance if you're using the performance governor.

The previous comment is not correct about if it lists you can use it, wrong.

You can verify by

watch grep \"cpu MHz\" /proc/cpuinfo 

using sudo of course. If the FREQ changes then you know it's working.

Required - cpufreq_performance.ko module <-- You can check to make sure it exists by running.

First make sure acpi-cpufreq.ko is available.

ls /lib/modules//kernel/arch/x86/kernel/cpu/cpufreq/ ls /lib/modules//kernel/drivers/cpufreq/ 

If the cpufreq_performance.ko module doesn't exist that means you'll need to compile it.

1
davidgo

From what I can see (on my Fedora Box), the performance governor is compiled in to the system, so you can just use it.

I am able to check the available governors by using the command

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 

(And it shows the performance governor even though this is not compiled as a module).

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