cpufreq leistungsmodul?

3472
Hei

Ich sehe kein cpufreq-Leistungsmodul:

$ 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 

Eine weitere Online-Suche zeigt dann, dass er Teil eines Kerns sein muss, anstatt eines ladbaren Moduls (für CentOS 5).
http://lists.centos.org/pipermail/centos/2010-July/097217.html

Ich bin jetzt bei CentOS 6.

Bedeutet das, dass ich den Kernel aus der Quelle neu kompilieren muss, um die Leistung von cpufreq zu aktivieren?

Update Nr. 1: Aus einigen Gründen sehe ich den Ordner (von David erwähnt) auf CentOS 6 nicht:

$ 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 

Update Nr. 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
Siehe auch: [Der Performance-Governor für cpufreq scheint sich nicht wie angegeben zu verhalten] (http://askubuntu.com/questions/179543/the-performance-governor-for-cpufreq-doesnt-seem-to-behave-as- beworben) (auf AskUbuntu) Breakthrough vor 11 Jahren 0

2 Antworten auf die Frage

2
Queasy

Auch wenn Sie es vom Befehl unten sehen:

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

es bedeutet nicht, dass es funktionieren wird.

Es ist erforderlich, dass der Kernel mit cpufreq_performance kompiliert wird, wenn Sie den Performance-Governor verwenden.

Der vorherige Kommentar ist nicht korrekt, wenn er Listen enthält, die Sie verwenden können, falsch.

Sie können durch überprüfen

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

natürlich mit sudo. Wenn sich die FREQ ändert, wissen Sie, dass sie funktioniert.

Erforderlich - cpufreq_performance.ko module <- Sie können durch Ausführen prüfen, ob es vorhanden ist.

Vergewissern Sie sich zunächst, dass acpi-cpufreq.ko verfügbar ist.

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

Wenn das Modul cpufreq_performance.ko nicht vorhanden ist, müssen Sie es kompilieren.

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