Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lentezza di Gentoo ...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
gatiba
Guru
Guru


Joined: 01 Sep 2002
Posts: 434

PostPosted: Tue Jun 03, 2003 9:47 pm    Post subject: Lentezza di Gentoo ... Reply with quote

Non so se a voi è capitato, ma io uso la Gentoo 1.4 a casa, mentre a lavoro una Suse 8.2 ed una Mandrake 9.1 .
Ebbene entrambe sono più veloci nello startup delle applicazioni rispetto alla Gentoo !
Non capisco come mai, ma nell'ultimo hanno sono passato dalla Gentoo 1.2 alla 1.4 passando per varie ricompilaizoni ed ogni volta noto la sua lentezza rispetto alle distribuzioni precompilate.
Eppure faccio un uso massiccio di CFLAGS per il compilatore gcc..
La vostra esperienza ?
Back to top
View user's profile Send private message
almafer
Guru
Guru


Joined: 21 Mar 2003
Posts: 317
Location: Firenze

PostPosted: Tue Jun 03, 2003 9:59 pm    Post subject: Reply with quote

stai attento a non esagerare con le ottimizzazioni ,puoi ottenere l'effetto contrario,che cpu e che ottimizzazioni?non è che io sia esperto ma qualche ragazzaccio qua ti può consigliare come impostarli al meglio :lol:
Back to top
View user's profile Send private message
gatiba
Guru
Guru


Joined: 01 Sep 2002
Posts: 434

PostPosted: Wed Jun 04, 2003 5:42 am    Post subject: Reply with quote

In effetti ho letto pochi giorni fa su questo forum che determinate ottimizazioni inutili potrebbero nuocere alla velocità.
Non so se è il mio caso comunque ecco i miei flags, ho un ATHLON XP 2000+:

Code:

CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -falign-functions=64 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
Back to top
View user's profile Send private message
gatiba
Guru
Guru


Joined: 01 Sep 2002
Posts: 434

PostPosted: Wed Jun 04, 2003 5:48 am    Post subject: Reply with quote

Ed ecco il risultato del buon cpuinfo:

Quote:
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Athlon(tm) XP 2000+
stepping : 0
cpu MHz : 1673.850
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips : 3335.78
Back to top
View user's profile Send private message
gatiba
Guru
Guru


Joined: 01 Sep 2002
Posts: 434

PostPosted: Wed Jun 04, 2003 4:24 pm    Post subject: Reply with quote

Nessuno ha avuto esperienze simili alla mia ?
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Jun 04, 2003 5:14 pm    Post subject: Reply with quote

Per ora no, gentoo è sicuramente la distro più scattante che abbia provato. Cmq tra circa una settimana dovrei aggiungere un nuovo pargolo alla mia lan, un Atlhon XP 2000 / 2200 (devo ancora valutare), se vuoi provo ad usare le tue flags e ti faccio sapere. Però devi pazientare per una /due settimane (anche se soffro più io di te ad aspettare :D )
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Jun 04, 2003 5:26 pm    Post subject: Reply with quote

Ad ogni modo flags più discrete tolgono dubbi e non fanno perdere molto in termini di prestazioni. Una volta settato -march le altre flags sono più o meno trascurabili secondo me.

CMQ c'è uno script che rileva le CFLAGS consigliate. Lo trovi cercando nel forum.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
paolo
l33t
l33t


Joined: 23 Jul 2002
Posts: 768
Location: SBT (AP)

PostPosted: Wed Jun 04, 2003 6:09 pm    Post subject: Reply with quote

Secondo me le impostazioni sono troppo spinte.

Prova delle più semplici
Code:
CFLAGS="-march=athlon-xp -m3dnow -msse -mmmx -O3 "


Già che ci sei prova anche la patch del kernel per rendere il multitasking di tipo preemptive: dovrebbe giovare all'utilizzo di tipo desktop.

ByEZz,
Paolo
_________________
Nihil sine magno labore
Back to top
View user's profile Send private message
gatiba
Guru
Guru


Joined: 01 Sep 2002
Posts: 434

PostPosted: Wed Jun 04, 2003 6:11 pm    Post subject: Reply with quote

Ok !
Nel frattempo ho fatto un pò di prove usando il buon FreeBench, ed ecco lo strabiliante risultato.
Usando i miei primi flags, cioè:
Code:

CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -falign-functions=64 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"


Ho ottenuto un punteggio di 3.281, mentre usando questi altri flags:
Code:

-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=64 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays

un bel 3.594.
In pratica ho tolto tutti i riferimenti a SSE, MMx e 3DNOW, che dovrebbero essere inclusi nel -march=athlon-xp, ed un paio di altre cose anche quelle incluse nel march.

Che ne dite? Direi che aveva ragione Almafer !!!! :o
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Jun 04, 2003 6:34 pm    Post subject: Reply with quote

prova:
Code:
CFLAGS="-march=athlon-xp -m3dnow -msse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
paolo
l33t
l33t


Joined: 23 Jul 2002
Posts: 768
Location: SBT (AP)

PostPosted: Wed Jun 04, 2003 6:40 pm    Post subject: Piano con i benchmark! Reply with quote

La differenza tra i benchmark e la realtà è tanta.
In teoria spingendo al massimo i tuoi flags (puoi anche copiarli dai risultati mandati dagli utenti con il processore come il tuo al sito di FreeBench) le prestazioni (dei benchmark!) migliorano anche di molto. Peccato però che poi le applicazioni non gireranno a dovere se gireranno e se si compileranno! :)

Segui cerri!!! ;)

ByEZz,
Paolo
_________________
Nihil sine magno labore
Back to top
View user's profile Send private message
almafer
Guru
Guru


Joined: 21 Mar 2003
Posts: 317
Location: Firenze

PostPosted: Wed Jun 04, 2003 10:11 pm    Post subject: Reply with quote

ho provato lo script del francese e mi da questo
Code:

chemako@tashunka chemako $ sh script.sh
 -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow

mentre mi ispirerebbe di più la soluzione di cerri,ho un athlon-xp 2400+,voi che ne dite,qualcuno ha un processore simile?tra l'altro ho sempre avuto problemi con mplayer,eccetto quando lo installo scaricandolo dal sito ufficiale,nel caso dell'ebuild di gentoo,mi vanno i dvd a scatti e tra i messaggi leggo che è stato compilato senza supporto per sse,per adesso do retta a cerri,finora mi sono sempre trovato bene seguendo i suoi consigli :D
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jun 05, 2003 4:39 am    Post subject: Reply with quote

almafer wrote:
ho provato lo script del francese e mi da questo
Code:

chemako@tashunka chemako $ sh script.sh
 -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow

mentre mi ispirerebbe di più la soluzione di cerri,

8) sono lusingato...
almafer wrote:
e tra i messaggi leggo che è stato compilato senza supporto per sse,

Allora ti manca sse in features... Ma fossi in te aggiungerei anche 3dnow e qualcos'altro... dai un'occhiata qui
almafer wrote:
per adesso do retta a cerri,finora mi sono sempre trovato bene seguendo i suoi consigli :D

Ora sono lusingatissimo :oops:
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Jun 05, 2003 5:37 am    Post subject: Reply with quote

almafer wrote:
ho provato lo script del francese e mi da questo
Code:

chemako@tashunka chemako $ sh script.sh
 -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow

mentre mi ispirerebbe di più la soluzione di cerri

La soluzione di cerri ti ispira di più perché è completa, lo script infatti consiglia solo le cflags base per il processore e lascia via la parte che è a stretta discrezione dell'utente, tipo -O o l'uso di -fomit-frame-pointer (che deve essere evitato da chi debugga).

Inoltre -O3 è sopravvalutata, allunga notevolmente i tempi di compilazione e la dimensione dei binari per un guadagno in termini di prestazioni minimo rispetto ad -O2.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
almafer
Guru
Guru


Joined: 21 Mar 2003
Posts: 317
Location: Firenze

PostPosted: Thu Jun 05, 2003 6:52 am    Post subject: Reply with quote

quindi uno -02 sarebbe meglio,io sto provando la cerri-way,la prossima volta proverò questa opzione,non capisco una cosa,ho dato emerge -e world,perchè mi stà scaricando il kernel 2.4.19? 8O
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Jun 05, 2003 7:12 am    Post subject: Reply with quote

almafer wrote:
quindi uno -02 sarebbe meglio

NO! Dev'essere una 'o' maiuscolaaaaa!
almafer wrote:
non capisco una cosa,ho dato emerge -e world,perchè mi stà scaricando il kernel 2.4.19? 8O

Uhm... non dovrebbe a meno che non era già installato prima. Cosa dice emerge -p, lo vuole installare come pacchetto nuovo?
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
almafer
Guru
Guru


Joined: 21 Mar 2003
Posts: 317
Location: Firenze

PostPosted: Thu Jun 05, 2003 7:34 am    Post subject: Reply with quote

-O2,errore di battitura :D ,avevo fatto un -pe e non l'avevo visto stò kernel,ma a notte fonda potrei aver visto male,faccio l'ultima domanda,nel make.conf una volta settato la CFALG,la CXXFLAG basta lasciarla com'è?,cioè
CXXFLAG=$(eccetera
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Jun 05, 2003 7:39 am    Post subject: Reply with quote

almafer wrote:
nel make.conf una volta settato la CFALG,la CXXFLAG basta lasciarla com'è?,cioè
CXXFLAG=$(eccetera

Si, a meno che non vuoi specificare CXXFLAGS diverse dalle CFLAGS.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
almafer
Guru
Guru


Joined: 21 Mar 2003
Posts: 317
Location: Firenze

PostPosted: Thu Jun 05, 2003 7:48 am    Post subject: Reply with quote

ok,grazie mille a tutti e due :D
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jun 05, 2003 12:36 pm    Post subject: Reply with quote

bsolar wrote:
Inoltre -O3 è sopravvalutata, allunga notevolmente i tempi di compilazione e la dimensione dei binari per un guadagno in termini di prestazioni minimo rispetto ad -O2.

Confermo, ma a me piace anche quel minimo punto percentuale... ;)
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Jun 05, 2003 1:39 pm    Post subject: Reply with quote

cerri wrote:
Confermo, ma a me piace anche quel minimo punto percentuale... ;)

Quindi ti fanno schifo tempi di caricamento e memory footprint ridotti? :P
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jun 05, 2003 3:51 pm    Post subject: Reply with quote

bsolar wrote:
Quindi ti fanno schifo tempi di caricamento e memory footprint ridotti? :P

Beh, i tempi di caricamento diciamo li sopporto, per avere un sistema un po' "piu' vivo", per quanto riguarda la memoria ho un notebook con 512Mb... finora non e' andata male :D

Cmq dai, mi stai convincendo, quasi quasi passo a provare -O2.
emerge, tienti pronto! :D
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
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
Page 1 of 1

 
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