Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compilare per Athlon-XP e usare su Athlon
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
FMulder
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 83
Location: Cagliari, Italy

PostPosted: Wed Jan 12, 2005 11:04 pm    Post subject: Compilare per Athlon-XP e usare su Athlon Reply with quote

Ho due pc con linux, un XP 2200+ e un Athlon 1200.. se io compilassi dei sorgenti sull'XP, con la flag -march=athlon-xp, costruissi i pacchetti binari e li installassi sull'altra macchina, che problemi avrei?
I pacchetti risulterebbero semplicemente maggiormente ottimizzati per l'athlon xp ma comunque funzionanti anche sull'altra macchina o come suppongo, rischierebbero di non funzionare o comunque di dare problemi sull'altro pc?
Per poterli usare tranquillamente su tutti e due con un'unica compilazione devo necessiamente usare -march=athlon? In questo caso.. c'è una differenza prestazionale evidente o è assolutamente trascurabile?

Gracias!
_________________
Chi rinuncia ai sogni, è destinato a morire
--> Jim Morrison
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jan 12, 2005 11:14 pm    Post subject: Re: Compilare per Athlon-XP e usare su Athlon Reply with quote

FMulder wrote:
Per poterli usare tranquillamente su tutti e due con un'unica compilazione devo necessiamente usare -march=athlon? In questo caso.. c'è una differenza prestazionale evidente o è assolutamente trascurabile?


-march utilizza tutta una serie di sottoflag caratteritiche dell'archiettura indicata. Adesso non ricordo le differenze tra athlon e athlon-xp, ma ponendo il caso che l'athlon-xp supporti l'sse e l'athlon no il tuo athlon dovrebbe impallarsi appena trova un istruzione sse.

Il "degrado prestazionale" c'é ma, IMHO non é certo evidente a occhio nudo.
_________________
Ciao da me!
Back to top
View user's profile Send private message
sourcez
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 166
Location: Italy

PostPosted: Wed Jan 12, 2005 11:17 pm    Post subject: Reply with quote

Immagino che l'argomento è stato trattato tante volte, comunque la differenza di prestazioni sarà impercettibile dato che a volte anche tra ottimizzazione i386 e personalizzata in base all'archittetura, non vi è molta differenza.
_________________
"Tutti pensano a cambiare l’umanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj
Back to top
View user's profile Send private message
FMulder
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 83
Location: Cagliari, Italy

PostPosted: Wed Jan 12, 2005 11:19 pm    Post subject: Reply with quote

come immaginavo... bene magari compilo separatamente alcuni pacchetti critici e il resto lo compilo con march=athlon così evito di sprecare il doppio del tempo ;-)

Grazie mille
_________________
Chi rinuncia ai sogni, è destinato a morire
--> Jim Morrison
Back to top
View user's profile Send private message
xoen
Guru
Guru


Joined: 06 Sep 2003
Posts: 472
Location: /dev/null

PostPosted: Wed Jan 12, 2005 11:27 pm    Post subject: Re: Compilare per Athlon-XP e usare su Athlon Reply with quote

FMulder wrote:
Ho due pc con linux, un XP 2200+ e un Athlon 1200.. se io compilassi dei sorgenti sull'XP, con la flag -march=athlon-xp, costruissi i pacchetti binari e li installassi sull'altra macchina, che problemi avrei?

Il problema è che vuoi risparmiare tempo compilando sul computer più potente se non ho capito male...o che vuoi compilare un pacchetto una volta per due computer?

Se devi compilare una volta per due computer allora mi sà che devi compilare i pacchetti per l'athlon (senza le ottimizzazioni per l'AthlonXP) usando l'opizione "-b" che crea i pacchetti binari.

Se vuoi semplicemente risparmiare tempo compilando sull'AthlonXP allora questo dovrebbe chiamarsi crosscompilazione, penso che dovresti impostare -march ad athlon semplice, poi emergi con l'opzione "-B" (che crea i pacchetti binari ma non li installa)

In entrambi i casi dovrai copiare i pacchetti binari in /usr/portage/packages/All nella stessa directory dell'Athlon ed emerge usando l'opzione "-k" (o "-K" se lo vuoi "costringere" ad usare i pacchetti binari)


Tutto questo in teoria, non so se in pratica funziona.
_________________
xoen.Blog()
god@paradise # tar xfvjp big-bang.tar.bz2 -C universe
Back to top
View user's profile Send private message
FMulder
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 83
Location: Cagliari, Italy

PostPosted: Wed Jan 12, 2005 11:39 pm    Post subject: Reply with quote

dunque il fatto è questo... ho un computer (XP) che uso normalmente e un'altro (Athlon) che fa da server per tutta una serie di servizi.. dato che sono uno che sperimenta in continuazione quello che mi passa per la testa, oggi ho deciso di settare distcc per sfruttare al massimo tutto l'utilizzo del serverino, dato che non ha praticamente mai un grosso carico sulla cpu e che quindi era un po' sovraddimensionata rispetto al suo reale utilizzo... dopo che l'ho sistemato però mi sono detto che dato che c'ero potevo compilare tutto sul serverino, sfruttando anche distcc, e magari tenere i binari pronti per essere utilizzati su entrambe le macchine

tornando al tuo post, la mia idea era di usare FEATURES="buildpkg" in make.conf e tenermi i binari pronti da usare, proprio i -b e -K che dicevi tu ;-)
_________________
Chi rinuncia ai sogni, è destinato a morire
--> Jim Morrison
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Thu Jan 13, 2005 8:00 am    Post subject: Reply with quote

Io consiglio di mettere la flag i686 cosi' non hai problemi
_________________
Questions are guaranteed in life; Answers aren't.
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