Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gestione della frequenza della cpu
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Wed Nov 24, 2004 2:25 pm    Post subject: gestione della frequenza della cpu Reply with quote

seguendo la guida di questo http://www.gepsware.it/portatile/index.htm#kernel1 link ho messo in /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor il valore ondemnad...
e fin qui tutto ok.....
la frequenza scende e sale in base al carico....
xo ogni volta che riavvio il sistema,al posto di "ondemand" si rimette automaticamente"userspace"...
Come faccio a farci rimanere "ondemand"?


Last edited by inspiron on Tue Nov 30, 2004 9:01 am; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Nov 24, 2004 2:31 pm    Post subject: Reply with quote

Penso che devi mettere questa stinga
Code:
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

in un qualche script di avvio tipo local.start perche' tu al kernel hai specificato di usare di default userspace
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Wed Nov 24, 2004 2:36 pm    Post subject: Reply with quote

e in caso come faccio a specificare "ondemand" di default al kernel?
dove sta local.start?
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 2:37 pm    Post subject: Reply with quote

Bella domanda inspiron! ;)
Anche a me interesserebbe saperlo evitendo di fare 'ste cose brutte (vedi adsl-start e altri scriptini in local.start)

Penso/spero che ci sia sicuramente un modo per usare quel.. "governatore" ( lol ) in altro modo

se qualcuno e' + illuminato ci faccia sapere :D

Ciau!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 2:38 pm    Post subject: Reply with quote

inspiron wrote:
e in caso come faccio a specificare "ondemand" di default al kernel?
dove sta local.start?


<EDIT> avevo scritto un comando errato e l'ho cancellato per non creare confusione... cmq inspiron, basta editare il file:

/etc/conf.d/local.start

E aggiungere la linea:

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Nov 24, 2004 2:43 pm    Post subject: Reply with quote

lavish wrote:
Penso/spero che ci sia sicuramente un modo per usare quel.. "governatore" ( lol ) in altro modo

Non vedo in che altro modo quel governor non e' uno disponibile nel kernel. Magari c'e' una patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 2:45 pm    Post subject: Reply with quote

fedeliallalinea wrote:
lavish wrote:
Penso/spero che ci sia sicuramente un modo per usare quel.. "governatore" ( lol ) in altro modo

Non vedo in che altro modo quel governor non e' uno disponibile nel kernel. Magari c'e' una patch




Code:
darkstar linux # grep ONDEMAND .config
CONFIG_CPU_FREQ_GOV_ONDEMAND=y


Come no?! :roll:
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Wed Nov 24, 2004 2:53 pm    Post subject: Reply with quote

io ho:

Code:

ONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#

ho visto che compilando il kernel posso mettere di desult o USERSPACE o PERFORMANCE...
ma non ONDEMAND...
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 2:58 pm    Post subject: Reply with quote

inspiron wrote:
io ho:

Code:

ONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#

ho visto che compilando il kernel posso mettere di desult o USERSPACE o PERFORMANCE...
ma non ONDEMAND...


Si' infatti... il supporto c'e' ma non so perche' non si possa settare nel kernel di usare quel governor.... per ora si puo' fare come ti ha detto fedeli
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Nov 24, 2004 3:01 pm    Post subject: Reply with quote

lavish wrote:
Si' infatti... il supporto c'e' ma non so perche' non si possa settare nel kernel di usare quel governor.... per ora si puo' fare come ti ha detto fedeli

Non avevo visto che nella configurazione c'era
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Wed Nov 24, 2004 3:05 pm    Post subject: Reply with quote

ok..
ho rsolto...
graqzie a tutti
Back to top
View user's profile Send private message
[hammerfall]
Apprentice
Apprentice


Joined: 27 May 2004
Posts: 243

PostPosted: Wed Nov 24, 2004 3:30 pm    Post subject: Reply with quote

lo stesso lavoro viene fatto egregiamente da powernowd utilizzando il governor userspace.

nota: a dispetto del nome va anche con le cpu non amd
_________________
--------

Hammerfall ^_^
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 4:07 pm    Post subject: Reply with quote

Io cmq uso cpudynd che fa lo switch fra powersave e performance... inoltre mi mette a nanna i dischi.. pero' non passa per tutte le freq tipo: 800 1800 e 2000 ma salta subito da 800 a 2000 e viceversa... forse proprio perche' utilizza due governors diversi...

Sto dicendo idiozie?
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Wed Nov 24, 2004 4:10 pm    Post subject: Reply with quote

Io uso speedfreq. Mi dicevano che non si puo' passare tra le frequenze di mezzo, ma solo tra quelle estreme. Non so se sia effettivmanente vero...
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Nov 24, 2004 4:22 pm    Post subject: Reply with quote

Chi a voglia di fare delle prove per evitare il dubbio? :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 4:22 pm    Post subject: Reply with quote

silian87 wrote:
Io uso speedfreq. Mi dicevano che non si puo' passare tra le frequenze di mezzo, ma solo tra quelle estreme. Non so se sia effettivmanente vero...


non e' vero perche' con speedfreq (o con powernowd ora non mi ricordo) ci passavo tranquillamente
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Nov 24, 2004 4:25 pm    Post subject: Reply with quote

lavish wrote:
non e' vero perche' con speedfreq (o con powernowd ora non mi ricordo) ci passavo tranquillamente

Comunque penso che sil il driver che deve permettere queste cose.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 4:37 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Comunque penso che sil il driver che deve permettere queste cose.


Si' infatti penso usasse userspace... bho adesso mi informo
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Wed Nov 24, 2004 5:27 pm    Post subject: Reply with quote

Bello! Non sapevo che si potesse fare lo scaling dinamico... mi informero' anche io.
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
Taglia
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 244

PostPosted: Wed Nov 24, 2004 5:44 pm    Post subject: Reply with quote

Io uso speedfreqd e mi trovo benissimo. Lo lancio allo startup

Code:

speedfreq -m

in una shell per monitorare quello che fa

poi
Code:

speedfreq -p policy


Per settare una policy di default (se lo mettete nello startup) si modifica il file /etc/conf.d/speedfreq
Eventualmente si può usare lo script fornito con il pacchetto (battery.sh) che vi mostra come rendere dinamiche le policies a seconda che ci sia la batteria nel portatile o meno ... o lo modificate per esigenze vostre![/code]
_________________
Taglia
./ do NOT click ...
./ Mentecritica: Non esistono questioni di principio
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Nov 24, 2004 5:52 pm    Post subject: Reply with quote

Rimane il fatto che cpudynd ha il vantaggio di "spegnere" gli hd...
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Wed Nov 24, 2004 5:58 pm    Post subject: Reply with quote

Quote:
Rimane il fatto che cpudynd ha il vantaggio di "spegnere" gli hd...


A quello ci pensa lo sleep del powerbook... mno dell'un percento all'ora di batteria :twisted: :wink: :D
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Tue Nov 30, 2004 9:01 am    Post subject: Reply with quote

ho notato che con la politica on demand la cpu arrivare a lavorare anche a 382 mhz...
Questo xo mi sembra improbabile visto che per andare a quella frequenza il moltiplicatore dovrebbe andare a meno di 1X....
come e possibilke?
Back to top
View user's profile Send private message
inspiron
Guru
Guru


Joined: 08 Nov 2004
Posts: 559

PostPosted: Fri Dec 03, 2004 9:24 pm    Post subject: Reply with quote

up
Back to top
View user's profile Send private message
power83
l33t
l33t


Joined: 28 Nov 2004
Posts: 638

PostPosted: Sun Dec 05, 2004 12:06 am    Post subject: Reply with quote

io uso cpufreqd e va bene

io mio pentium4 Northwood 2.00 GHz e' in grado di andare a 250 MHz anche!

Bel vantaggio sul portatile quando lo uso a batterie, a costo di non usare X, altrimenti...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum