View previous topic :: View next topic |
Author |
Message |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Thu Sep 13, 2007 2:21 pm Post subject: [Risolto] Ma powernowd, funziona correttamente? |
|
|
Ciao a tutti,
da un bel po' di tempo utilizzo powernowd sul mio portatile. All'inizio sembrava funzionare alla grande ma da un po' secondo me presenta qualche problema.
Ho un Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz e queste sono le frequenze a cui può lavorare: 2000000 1667000 1333000 1000000.
Tramite un plugin di superkaramba vedevo cambiare la frequenza della cpu di tanto in tanto, secondo i valori appena citati, ma da qualche tempo vedo che si piazza a 1000 e non schioda di li.
La modalità che ho impostato è la 1=AGGRESSIVE. Ho notato che stoppando powernowd la frequenza schizza subito a 2000, quindi vedo che alla fine powernowd, tiene la cpu sotto controllo, ma non come dovrebbe (almeno secondo il mio modesto parere), visto che non scala nelle due frequenze di mezzo.
Ciò che mi incuriosisce è il fatto che mentre io sto compilando il mondo... (emerge -uDN world) la frequenza rimanga a 1000, invece di arrivare a 2000 e sfruttare tutta la potenza della cpu. Questo mi fa anche abbastanza piacere visto che così la temperatura della cpu non si alza tanto e la ventola gira più piano, ma ciò è normale?
Come posso fare per ottenere di nuovo un frequency scaling? _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Last edited by fbcyborg on Thu Sep 13, 2007 6:41 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Thu Sep 13, 2007 2:26 pm Post subject: |
|
|
Hai provato a vedere se con il solo governor ondemand o conservative la situazione e' la medesima ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Thu Sep 13, 2007 2:50 pm Post subject: |
|
|
Dunque, queste sono le impostazioni sul mio kernel:
Code: | CPU Frequency scaling --->
[*] CPU Frequency scaling
[ ] Enable CPUfreq debugging
<*> CPU frequency translation statistics
[ ] CPU frequency translation statistics details
Default CPUFreq governor (userspace) --->
<*> 'performance' governor
<*> 'powersave' governor
--- 'userspace' governor for userspace frequency scaling
<*> 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
--- CPUFreq processor drivers
<*> ACPI Processor P-States driver
<*> Intel Enhanced SpeedStep
[*] Use ACPI tables to decode valid frequency/voltage pairs
[ ] Built-in tables for Banias CPUs
<*> Intel Speedstep on ICH-M chipsets (ioport interface)
<M> Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface) |
Ora non so esattamente come verificare quale governor io stia usando, causa inesperienza.
Quello che posso dirti è che ho sempre lasciato attivo powernowd, e quello che so è che posso impostare il governor tramite cpufreq-set (avevo già emerso cpufreq-utils.
Riporto un cpufreq-info:
Code: | # cpufreq-info | grep governor
available cpufreq governors: conservative, ondemand, powersave, userspace, performance
The governor "userspace" may decide which speed to use
available cpufreq governors: conservative, ondemand, powersave, userspace, performance
The governor "userspace" may decide which speed to use
|
_________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Thu Sep 13, 2007 3:00 pm Post subject: |
|
|
e usando semplicemente il governor senza powernod cambia qualcosa ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
noice Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/17309552664700181676cc5.jpg)
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Thu Sep 13, 2007 3:15 pm Post subject: |
|
|
fbcyborg wrote: | Come dicevo, non so come determinare che governor io stia utilizzando al momento, se lo stia effettivamente utilizzando, e che disabilitando powernowd la frequenza mi va a 2000. Se riattivo powernowd mi ritorna a mille passando per 1667. |
Code: | cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
per vedere che governor stai usando _________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Thu Sep 13, 2007 4:39 pm Post subject: |
|
|
allora per sapere il governo che stai usando usi cpufreq-info...
prova a settare il governor su ondemand e vedere se scala correttamente la frequenza (performance manda il processore al massimo SEMPRE) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Sep 13, 2007 4:55 pm Post subject: |
|
|
Installi il pacchetto cpufrequtils e in /etc/conf.d/cpufrequtils scrivi:
Code: | GOVERNOR="ondemand" | e lo aggiungi al runlevel che vuoi (io l'ho aggiunto a boot direttamente).
Non ho mai configurato ne' usato powernowd ma uso correntemente cpufreqd per cambiare dinamicamente tipo di governor in base alle mie esigenze...
Per esempio ho creato questo file di configurazione per cpufreqd (/etc/cpufreqd.conf) per tenere la cpu al minimo in caso di surriscaldamento del processore (capita se compili... di solito significa che la cpu va al minimo per qualche secondo, la ventola raffredda la cpu e la frequenza si rialza).
Te lo posto magari ti fosse utile:
Code: | [General]
pidfile=/var/run/cpufreqd.pid
poll_interval=3
#enable_plugins= programs,acpi_ac,cpu,acpi_battery,acpi_temperature,nforce2,sensors,nvclock,apm,pmu
enable_plugins=acpi_ac,acpi_battery,acpi_temperature
enable_remote=1
remote_group=wheel
verbosity=5
[/General]
[Profile]
name=ondemand
minfreq=0%
maxfreq=100%
policy=ondemand
[/Profile]
[Profile]
name=ondemand_lo
minfreq=0%
maxfreq=20%
policy=ondemand
[/Profile]
[Profile]
name=conservative
minfreq=0%
maxfreq=100%
policy=conservative
[/Profile]
[Profile]
name=powersave
minfreq=0%
maxfreq=100%
policy=powersave
[/Profile]
[Profile]
name=powersave_lo
minfreq=0%
maxfreq=20%
policy=powersave
[/Profile]
[Profile]
name=performance
minfreq=0%
maxfreq=100%
policy=performance
[/Profile]
##
# Basic states
##
[Rule]
name=ac
ac=on
cpu_interval=0-100
acpi_temperature=THZN:0-84
acpi_temperature=THZV:0-84
battery_interval=11-100
profile=ondemand
[/Rule]
[Rule]
name=battery
ac=off
acpi_temperature=THZN:0-84
acpi_temperature=THZV:0-84
cpu_interval=0-100
battery_interval=11-100
profile=conservative
[/Rule]
[Rule]
name=battery_low
ac=off
acpi_temperature=THZN:0-84
acpi_temperature=THZV:0-84
cpu_interval=0-100
battery_interval=0-10
profile=powersave
[/Rule]
[Rule]
name=overheat_cpu
acpi_temperature=THZN:85-100
acpi_temperature=THZV:0-84
cpu_interval=0-100
battery_interval=11-100
profile=ondemand_lo
[/Rule]
[Rule]
name=overheat_mb
acpi_temperature=THZN:0-84
acpi_temperature=THZV:85-100
cpu_interval=0-100
battery_interval=11-100
profile=ondemand_lo
[/Rule]
[Rule]
name=overheat_all
acpi_temperature=THZN:85-100
acpi_temperature=THZV:85-100
cpu_interval=0-100
battery_interval=11-100
profile=powersave_lo
[/Rule]
#[Rule]
#name=Movie Watcher
#programs=xine,mplayer,gmplayer
#acpi_temperature=THZN:0-90
#acpi_temperature=THZV:0-90
#cpu_interval=0-100
#battery_interval=11-100
#acpi_temperature=0-60
#profile=Performance High
#[/Rule] |
_________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Thu Sep 13, 2007 5:01 pm Post subject: |
|
|
io usavo /etc/conf.d/local.start
Quote: | cat /etc/conf.d/local.start
# /etc/conf.d/local.start
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
per settare il tutto, ma ora mi sono accorto che non funziona più...
cpufrequtils in runlevel serve in ogni caso? _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Thu Sep 13, 2007 5:15 pm Post subject: |
|
|
Cosa vuol dire "in ogni caso" ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Thu Sep 13, 2007 5:21 pm Post subject: |
|
|
MeMyselfAndI wrote: | Cosa vuol dire "in ogni caso" ? |
Mi è parso di capire che cpufrequtils è un demone "in più" per controllare la frequenza del processore.... _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Sep 13, 2007 5:43 pm Post subject: |
|
|
bandreabis wrote: | Mi è parso di capire che cpufrequtils è un demone "in più" per controllare la frequenza del processore.... |
No, cpufrequtils non è un demone.
E' solo un banale script di init che si limita ad impostare il governor di default.
E' per questo che uso cpufreqd per cambiarlo a seconda delle esigenze.
Non so che faccia di preciso powernowd ma penso funzioni tipo cpufreqd. _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Thu Sep 13, 2007 6:39 pm Post subject: |
|
|
A quanto ho capito io (probabilmente potrei non aver interpretato bene), powernowd è qualcosa che sceglie, secondo le sue politiche impostate da utente, che governor utilizzare.
Ora, a seconda di quanto visto, questo lavoro non lo fa bene. Powernowd ha una sua politica di gestire i governor (ma secondo me non va ad agire proprio su di essi) ovvero secondo queste modalità di lavoro:
Code: | Modes of operation, can be 0, 1, 2, or 3:
0 = SINE, 1 = AGGRESSIVE (default), 2 = PASSIVE, 3 = LEAPS
0: SINE : increments the frequency by one step each time the CPU becomes busier than the 80%, and decrements of the same value when the CPU load become 20%
1: AGGRESSIVE : increases to the maximum frequency when the CPU load surpasses 80%, and decreases by one step when the load becomes less than 20%
2: PASSIVE : the opposite of Aggressive. Jump to the minimum when the load becomes less than 20% and increases by one step when it surpasses 80%
3: LEAPS : go to the maximum beyond 80%, and to the minimum under 20% |
In teoria settando una di queste opzioni dovrei poter impostare il governor che più mi soddisfa, ma non funziona benissimo secondo me.... _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Fri Sep 14, 2007 8:35 am Post subject: |
|
|
a prima vista direi invece che powernowd usa solamente ondemand : quello che varia sono i valori soglia al cui cambiare frequenza (lo puoi fare a mano anche tu andando a modificare i valori in /sys/devices/system/cpu/cpu0/cpufreq/ondemand ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Fri Sep 14, 2007 8:44 am Post subject: |
|
|
MeMyselfAndI wrote: | a prima vista direi invece che powernowd usa solamente ondemand : quello che varia sono i valori soglia al cui cambiare frequenza (lo puoi fare a mano anche tu andando a modificare i valori in /sys/devices/system/cpu/cpu0/cpufreq/ondemand ) |
Mmh...
C'è qualcosa di strano... io mi trovo sempre il governor su userspace. Come mai succede questo anche se ho aggiunto cpufrequtils al runlevel di default, impostando come governor ondemand??? Ora non so se mi si è impallato qualcosa ma questo powernowd comincia a farmi venire la voglia di disinstallarlo. _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kernel78 Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Fri Sep 14, 2007 9:10 am Post subject: |
|
|
o uno o l'altro, non ha molto senso tenere due programmi che fanno (o cercano di fare) la stessa cosa ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kernel78 Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Fri Sep 14, 2007 9:35 am Post subject: |
|
|
fbcyborg wrote: | Kernel78 wrote: | o uno o l'altro, non ha molto senso tenere due programmi che fanno (o cercano di fare) la stessa cosa ![Wink :wink:](images/smiles/icon_wink.gif) |
Perfetto!
Code: | emerge -C powernowd |
viaaaa dalla mia gentoo!!! ![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) |
io per amore di pulizia darei anche Code: | emerge -a --depclean --with-bdeps n |
_________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Fri Sep 14, 2007 9:52 am Post subject: |
|
|
Kernel78 wrote: | io per amore di pulizia darei anche Code: | emerge -a --depclean --with-bdeps n |
|
Giusto per essere sicuro di aver capito bene cosa dovrei fare...
E' la prima volta che vedo questa opzione --with-bdeps e per curiosità mi sono andato a leggere il man.
Quello che leggo è che serve a far entrare le dipendenze "del tempo di compilazione" (inteso come data/ora in cui è stato effettuato il build completo) non strettamente necessarie. Mettiamo 'n' visto che nel depclean il default è 'y'.
Onestamente non capisco molto bene cosa significhi e a cosa si riferisca... Sicuro non ho tradotto bene...
Puoi chiarirmi il concetto per favore? _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tigerwalk Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/20400314344906c23bf0392.jpg)
Joined: 15 May 2007 Posts: 475 Location: Napoli
|
Posted: Fri Sep 14, 2007 9:52 am Post subject: |
|
|
Salve,
ho un i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel ed un kernel 2.6.22-gentoo-r5.
Ho attivato tutti i moduli richiesti dalla doc su "Guida alla Gestione Energetica", ho la stessa config. di fbcyborg riguardo alla CPU Frequency scaling, ma quando do
Code: | cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Per favore, comunicare errori e malfunzionamenti a linux@brodo.de.
analisi della CPU 0:
nessun modulo o modulo cpufreq sconosciuto per questa CPU
analisi della CPU 1: |
oppure
Code: | cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory |
avendo già aggiunto cpufrequtils al runlevel battery e default.
Ho notato anche che all'avvio di Gentoo, mi compare questo messaggio nella sequenza di boot:
Code: | * Enabling ondemand cpufreq governor on CPU0...
[!!]ata, sconosciuta o non gestita?
* Enabling ondemand cpufreq governor on CPU1...
[!!]ata, sconosciuta o non gestita? |
Credo di aver toppato qualcosa nella compilazione del kernel, ma cosa.....?
Potete aiutarmi a capire e correggere l'errore? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|