View previous topic :: View next topic |
Author |
Message |
flocchini Veteran
Joined: 17 May 2003 Posts: 1124 Location: Milano, Italy
|
Posted: Wed May 16, 2007 1:08 pm Post subject: |
|
|
riverdragon wrote: |
Al momento sono presenti suggerimenti solo per Beagle, CONFIG_USB_SUSPEND, CONFIG_CPU_FREQ_GOV_ONDEMAND, CONFIG_HPET e CONFIG_IRQBALANCE.
P.S. la nuova versione spiega anche dove trovare l'opzione CONFIG_TIMER_STATS |
ma sono ciecato io o questi consigli sono nelal sezione "tips & tricks" sul sito e basta? Dove li vedo gli altri?
E perche' non mi fa vedere i watt di consumo?
O non ho trovato io la doc oppure mi pare davvero un po' criptico sto coso :p _________________ ~~ Per amore della rosa si sopportano le spine... ~~ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 16, 2007 1:33 pm Post subject: |
|
|
Il consumo in watt si vede staccando l'alimentazione di linea e lasciando il portatile a batteria.
I suggerimenti di cui parlavo prima sono presenti nel codice, e vengono visualizzati solo se il programma li ritiene utili; sul sito sono presenti suggerimenti diversi. |
|
Back to top |
|
|
flocchini Veteran
Joined: 17 May 2003 Posts: 1124 Location: Milano, Italy
|
Posted: Wed May 16, 2007 1:36 pm Post subject: |
|
|
ti ringrazio. Quindi se mi suggerisce solo il suspend delle usb (che non posso usare x problemi di audio) significa che il resto e' a posto... Dopo undocko e vedo quanto consumo :p _________________ ~~ Per amore della rosa si sopportano le spine... ~~ |
|
Back to top |
|
|
Dece Apprentice
Joined: 23 Nov 2004 Posts: 291 Location: Bologna/Rimini Italy
|
Posted: Wed May 16, 2007 1:44 pm Post subject: |
|
|
Veramente io continuo a non vedere il consumo in watt... _________________ http://www.last.fm/user/Dece/ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 16, 2007 8:49 pm Post subject: |
|
|
Piccola nota di colore: quando la intel ha sviluppato i driver per la scheda wireless ipw3945 notizia è giunta al mondo quando i sorgenti erano ad una versione 0.0.X; hanno proceduto così prudentemente con le versioni che la versione 0.0.69 è diventata la 1.0
Ora invece la prima versione pubblica di powertop è la 1.0, e nel giro di qualche giorno siamo già alla 1.2 |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Wed May 16, 2007 10:30 pm Post subject: |
|
|
Code: | PowerTOP version 1.2 (C) 2007 Intel Corporation
Cn Avg residency (5s) Long term residency avg
C0 (cpu running) (14.5%)
C1 0.0ms ( 0.0%) 0.0ms
C2 0.6ms (30.7%) 0.9ms
C3 0.7ms (54.8%) 1.1ms
Wakeups-from-idle per second : 2614.8
Power usage (ACPI estimate) : 0.0 W (0.7 hours left)
Top causes for wakeups:
47.0% (491.0) <interrupt> : i8042
27.0% (281.8) firefox-bin : schedule_timeout (process_timeout)
9.6% (100.0) cpufreq-set : queue_delayed_work_on (delayed_work_timer_
3.7% (38.6) at-spi-registry : schedule_timeout (process_timeout)
3.4% (35.8) : do_setitimer (it_real_fn)
2.6% (26.8) <interrupt> : ipw3945
1.9% (20.2) : schedule_timeout (process_timeout)
1.3% (13.8) <interrupt> : libata
0.9% ( 9.6) <interrupt> : acpi
0.5% ( 5.0) modprobe : start_polling (acerhk_poll_event)
Suggestion: Enable the CONFIG_SND_AC97_POWER_SAVE kernel configuration option.
This option will automatically power down your sound codec when not in use,
and can save approximately half a Watt of power.
|
Ma anche a voi segna power usage 0.0? O è un mio problema?
Poi quel consiglio sull'AC97 non è presente nei gentoo-sources, c'è un kernel di riferimento?
Ulteriore info ... le patch proposte nel sito qualcuno le ha applicate? Se mi devo riscrivere gli ebuild e ricompilare tutto per guadagnare 2 minuti di batteria ... me lo risparmio _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Thu May 17, 2007 6:47 am Post subject: |
|
|
Anche a me ha consigliato di abilitare CONFIG_SND_AC97_POWER_SAVE, ma ho scoperto che viene visualizzata solo se attivi il supporto ai chipset audio intel-boh-ac97. Io uso il supporto intel-hda quindi l'opzione per me non è utile (e immagino neanche per te): il supporto ac97 non è mai attivo quindi non ha senso permettere al kernel di farlo fermare temporaneamente. |
|
Back to top |
|
|
ashlar Tux's lil' helper
Joined: 14 Jun 2006 Posts: 140
|
Posted: Mon May 21, 2007 2:58 pm Post subject: |
|
|
Quote: |
PowerTOP version 1.2 (C) 2007 Intel Corporation
Cn Avg residency (5s) Long term residency avg
C0 (cpu running) (11.2%)
C1 0.0ms ( 0.0%) 0.0ms
C2 1.3ms ( 2.7%) 1.0ms
C3 2.0ms (86.1%) 1.5ms
Wakeups-from-idle per second : 923.8
Top causes for wakeups:
25.6% (125.2) <interrupt> : uhci_hcd:usb2
20.9% (102.4) wish : schedule_timeout (process_timeout)
12.9% (63.2) <interrupt> : uhci_hcd:usb3, ipw3945
12.6% (61. <interrupt> : ohci1394, uhci_hcd:usb4, yenta, nvidia
7.2% (35.4) : do_setitimer (it_real_fn)
4.8% (23.6) firefox-bin : schedule_timeout (process_timeout)
3.5% (17.0) mixer_applet2 : schedule_timeout (process_timeout)
1.6% ( 7. <interrupt> : eth1
1.6% ( 7. thunderbird-bin : schedule_timeout (process_timeout)
1.5% ( 7.2) <interrupt> : ide0
|
Questo è quello che mi vede, non mi da info riguardo al powerusage... sapete perchè?
P.S. il mio portatile è un sony fe11h |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Mon May 21, 2007 4:42 pm Post subject: |
|
|
Staccato il cavo d'alimentazione? _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Mon May 21, 2007 4:56 pm Post subject: |
|
|
Pensa che a me non riesce a riconoscere i c-states... E ho un core duo, quindi intel! |
|
Back to top |
|
|
ashlar Tux's lil' helper
Joined: 14 Jun 2006 Posts: 140
|
Posted: Mon May 21, 2007 7:54 pm Post subject: |
|
|
anche staccando il cavo di alimentazione il risultato non cambia |
|
Back to top |
|
|
ashlar Tux's lil' helper
Joined: 14 Jun 2006 Posts: 140
|
Posted: Tue May 22, 2007 7:01 am Post subject: |
|
|
Per provare ho scaricato powertop da svn e adesso mi ha aggiunto questo nuovo consiglio:
Quote: |
Cn Avg residency (5s) Long term residency avg
C0 (cpu running) ( 5,1%)
C1 0,0ms ( 0,0%) 0,0ms
C2 1,6ms (94,9%) 1,8ms
Wakeups-from-idle per second : 1202,2
Top causes for wakeups:
25,2% (125,0) <interrupt> : uhci_hcd:usb2
21,4% (105, wish : schedule_timeout (process_timeout)
12,4% (61,2) <interrupt> : ohci1394, uhci_hcd:usb4, yenta, nvidia
10,9% (54,0) <interrupt> : uhci_hcd:usb3, ipw3945
6,4% (31,6) firefox-bin : schedule_timeout (process_timeout)
4,2% (20,6) : do_setitimer (it_real_fn)
2,9% (14,2) <interrupt> : eth1
2,3% (11,6) mixer_applet2 : schedule_timeout (process_timeout)
2,0% ( 9, <interrupt> : libata
1,7% ( 8,6) <interrupt> : i8042
Suggestion: Enable the CONFIG_SND_AC97_POWER_SAVE kernel configuration option.
This option will automatically power down your sound codec when not in use,
and can save approximately half a Watt of power.
|
Ho provato ad abilitare ciò che chiede ma proprio non riesco a trovarlo qualcuno che lo ha fatto può mettere passo passo quali voci abilitare/disabilitare del kernel? |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Tue May 22, 2007 9:13 am Post subject: |
|
|
C'è un mio post a riguardo proprio in questa pagina. |
|
Back to top |
|
|
ashlar Tux's lil' helper
Joined: 14 Jun 2006 Posts: 140
|
Posted: Tue May 22, 2007 10:15 am Post subject: |
|
|
riverdragon wrote: | C'è un mio post a riguardo proprio in questa pagina. |
si avevo letto la tua risposta, ma tu come hai fatto a eliminare quel messaggio? |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Tue May 22, 2007 1:30 pm Post subject: |
|
|
riverdragon wrote: | Pensa che a me non riesce a riconoscere i c-states... E ho un core duo, quindi intel! |
Io pure, quelo che ho incollato sopra è un Core Duo i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Tue May 22, 2007 1:50 pm Post subject: |
|
|
ashlar wrote: | riverdragon wrote: | C'è un mio post a riguardo proprio in questa pagina. |
si avevo letto la tua risposta, ma tu come hai fatto a eliminare quel messaggio? | Non lo elimini, e` un problema del programma che non capisce che e` fuori luogo. Ignoralo e basta.
unz wrote: | Io pure, quelo che ho incollato sopra è un Core Duo i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux | Mi posteresti qui la parte del tuo .config del kernel relativa a "processor type and features"? |
|
Back to top |
|
|
ashlar Tux's lil' helper
Joined: 14 Jun 2006 Posts: 140
|
Posted: Tue May 22, 2007 3:09 pm Post subject: |
|
|
riverdragon wrote: | ashlar wrote: | riverdragon wrote: | C'è un mio post a riguardo proprio in questa pagina. |
si avevo letto la tua risposta, ma tu come hai fatto a eliminare quel messaggio? | Non lo elimini, e` un problema del programma che non capisce che e` fuori luogo. Ignoralo e basta.
|
Lo chiedevo perchè ho visto dagli altri "consigli" che powertop mi ha dato in precedenza, che passa alle altre configurazioni del kernel una volta che tu hai tolto quello che lui crede essere un possibile dispendio di energia. |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Tue May 22, 2007 3:57 pm Post subject: |
|
|
riverdragon wrote: | unz wrote: | Io pure, quelo che ho incollato sopra è un Core Duo i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux |
Mi posteresti qui la parte del tuo .config del kernel relativa a "processor type and features"? |
Mmm non credo sia quello il punto. Lì ho segnato SMP, e pentiumm
Credo sia più una cosa di acpi, che ti incollo
Code: | #
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_SLEEP_PROC_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=y
#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
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_GOV_CONSERVATIVE=y
#
# CPUFreq processor drivers
#
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
CONFIG_X86_SPEEDSTEP_CENTRINO=y
# CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI is not set
CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
CONFIG_X86_SPEEDSTEP_ICH=y
CONFIG_X86_SPEEDSTEP_SMI=m
CONFIG_X86_P4_CLOCKMOD=m
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set
# CONFIG_X86_E_POWERSAVER is not set
#
# shared options
#
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_X86_SPEEDSTEP_LIB=y
CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y |
_________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 23, 2007 6:55 am Post subject: |
|
|
Invece potrebbe essere proprio quello, io come processore ho impostato pentium4 (coerentemente con le indicazioni che dicono di usare -march=prescott per gcc). Provo a ricompilare con pentium-m e vediamo.
@ashlar: se vuoi puoi aprire il file powertop.c e andare in fondo a leggere tutti i suggerimenti che può proporre, sono quattro o cinque in tutto. |
|
Back to top |
|
|
gioi Apprentice
Joined: 14 Feb 2006 Posts: 236
|
Posted: Wed May 23, 2007 7:06 am Post subject: |
|
|
riverdragon wrote: | Invece potrebbe essere proprio quello, io come processore ho impostato pentium4 (coerentemente con le indicazioni che dicono di usare -march=prescott per gcc). Provo a ricompilare con pentium-m e vediamo.
@ashlar: se vuoi puoi aprire il file powertop.c e andare in fondo a leggere tutti i suggerimenti che può proporre, sono quattro o cinque in tutto. |
Scusa river ma un core duo non è sicuramente un pentium4 che, in teoria, è basato sull'architettura netburst completamente diversa dalla core sia in quanto a profondità della pipeline, che a cache ecc ecc
Al max, ma proprio al max, se proprio non vuoi usare pentium-m dovresti usare pentium3 (da cui deriva il pentium-m), di sicuro non pentium4 che è totalmente diverso...
Anche l'abilitazione dell'smp del pentium 4, poi, è mooolto diversa, perchè scaturisce dall'HT e non da una reale implementazione di routine SMP, ma qui le scuole di pensiero sono le più disparate... |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 23, 2007 10:04 am Post subject: |
|
|
C'è una lunga discussione qui sul forum italiano dove si parla di quello. Per il compilatore non c'è differenza tra core duo (non core2) e pentium4; -march=prescott è uguale a -march=pentium-m -msse3, anche qui dicono uguale.
L'unica cosa che posso presumere è che impostando il kernel per un pentium4/pentium4M eccetera le opzioni di scaling della cpu siano attivate diversamente; tuttavia ogni volta che ci penso sono sempre meno convinto che la strada sia questa. |
|
Back to top |
|
|
gioi Apprentice
Joined: 14 Feb 2006 Posts: 236
|
Posted: Wed May 23, 2007 11:29 am Post subject: |
|
|
riverdragon wrote: | C'è una lunga discussione qui sul forum italiano dove si parla di quello. Per il compilatore non c'è differenza tra core duo (non core2) e pentium4; -march=prescott è uguale a -march=pentium-m -msse3, anche qui dicono uguale.
L'unica cosa che posso presumere è che impostando il kernel per un pentium4/pentium4M eccetera le opzioni di scaling della cpu siano attivate diversamente; tuttavia ogni volta che ci penso sono sempre meno convinto che la strada sia questa. |
Sono al corrente delle "disquisizioni"(più che discussioni in materia ) e le argomentazioni portate da una parte e dall'altra sono ora convincenti ora del tutto ipotetiche, quindi sinceramente, se dovessi scegliere la "configurazione" più performante non saprei scegliere, perchè anche cronometro alla mano, la vedo dura trovare differenze apprezzabili di prestazioni.
Il mio discoro, in generale, riguarda un utilizzo "SAFE" la cui filosofia dovrebbe essere più o meno: nel dubbio utilizza l'opzione più generalistica possibile.
Sicuramente scegliendo pentium-m o pentium3 si corre il rischio di perdere ottimizzazioni comuni tra i processori core ed i pentium4 (anche se appartenenti a differenti famiglie di architetture, non mi sembra improbabile che vi sia stato un travaso di tecnologia tra quanto di buono c'era su netburst e l'attuale architettura core e core 2 basata sui pentium-m.
Tuttavia, basandomi sulle mie sole (poche) conoscenze, di ottimizzazioni a livello di microcodice (c'ho fatto la tesi di laurea, quindi sono nozioni solo a livello di algoritmi e di teorie), la lunghezza della pipeline è un fattore imprescindibile per fare scelte ottimali riguardanti le ottimizzazioni (scusate la ripetizione) di codice macchina. E la differenza in questo caso è abissale essendo rientrati dai 30 e passa stadi della netburst a valori più umani nei processori core e core 2 (sia single che duo).
Per questo IMHO, alla fine, tutti i vantaggi che si potrebbero acquisire dalle ottimizzazioni mancanti nel profilo pentium-m rispetto a quello pentium4, sarebbero del tutto vanificati nell'errata impostazione della lunghezza ottimale di gruppi di istruzioni processate, in virtù dell'errato calcolo della dimensione massima della catena di pipeline...
ovviamente IMHO |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 23, 2007 1:07 pm Post subject: |
|
|
Vero, ma la discussione si e` arenata nel momento in cui e` uscita una risposta di uno sviluppatore gcc, che diceva che il core duo e` corretto ottimizzarlo come il prescott. Visto che alla fine chi decide e` gcc...
Concordo sul fatto che non ho notato nessuna differenza quando sono passato da -march=pentium-m a -march=prescott. |
|
Back to top |
|
|
gioi Apprentice
Joined: 14 Feb 2006 Posts: 236
|
Posted: Wed May 23, 2007 1:23 pm Post subject: |
|
|
riverdragon wrote: | Vero, ma la discussione si e` arenata nel momento in cui e` uscita una risposta di uno sviluppatore gcc, che diceva che il core duo e` corretto ottimizzarlo come il prescott. Visto che alla fine chi decide e` gcc...
Concordo sul fatto che non ho notato nessuna differenza quando sono passato da -march=pentium-m a -march=prescott. |
No, aspetta forse mi sono perso io da qualche parte, stiamo parlando di due cose diverse...
tu parli delle use flags io del tipo di processore da scegliere nel kernel... credevo che l'argomento del discorso fosse quello...
Per le use flags, la corretta è appunto prescott! |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed May 23, 2007 5:36 pm Post subject: |
|
|
Visto che il kernel viene compilato da gcc non credo che ci sia differenza... sbaglio? |
|
Back to top |
|
|
|