Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc e ccache durante installazione
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
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Sun Nov 23, 2008 5:58 pm    Post subject: Distcc e ccache durante installazione Reply with quote

Salvea a tutti. Vorrei installare gentoo sul computer di un'amica. Per risparmiare tempo vorrei usare distcc il prima possibile durante l'installazione, a che punto è sicuro farlo? Cioè, posso, subito dopo il chroot, fare emerge distcc, configurarlo e iniziare immediatamente ad usarlo o meglio installare qualche pacchetto prima? La stessa domanda vale per ccache (anche se in effetti ccache dovrebbe velocizzare solo le ricompilazioni, quindi non so che utilità possa avere).
Un'ultima domanda: devo configurare qualcosa per far interagire ccache e distcc? Il man di ccache dice
Quote:

USING CCACHE WITH DISTCC
distcc is a very useful program for distributing compilation across a range of compiler servers. It is often useful to combine
distcc with ccache, so that compiles that are done are sped up by distcc, but that ccache avoids the compile completely where
possible.

To use distcc with ccache I recommend using the CCACHE_PREFIX option. You just need to set the environment variable CCACHE_PRE-
FIX to 'distcc' and ccache will prefix the command line used with the compiler with the command 'distcc'.


Se faccio quello che c'è scritto in sostanza cosa succede? Grazie a tutti.
Ricky
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Nov 23, 2008 8:27 pm    Post subject: Reply with quote

Ciao,

io penso che tu possa iniziare ad usare distcc dal momento in cui hai estratto lo stage3 e compilato un kernel, in modo da avere un sistema Gentoo minimale funzionante. Alla fine, se installi da stage3 hai poco da compilare.
Comunque la cosa secondo me è fattibilissima.
_________________
[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
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Mon Nov 24, 2008 11:44 am    Post subject: Reply with quote

Io comincerei ad avere un sistema installato che faccia boot . Una volta poi che hai una shell andrai ad installare distcc ed eventualmente ad usarlo. CCACHE non è di grande aiuto IMHO. Certo è che devi valutare se l'overhead di metter in piedi distcc valga poi tutto sto ipotetico vantaggio in termini velocistici.
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Mon Nov 24, 2008 12:30 pm    Post subject: Reply with quote

Io mi son sempre trovato bene con distcc per l'installazione delle macchine.
Trovi una guida qui http://www.gentoo.org/doc/en/distcc.xml che ti spiega come usarlo nelle fasi iniziali.
Puoi avere qualche problema se le versioni di gcc non sono uguali sulle macchine che partecipano alla compilazione.
Se vuoi avere un significativo aumento delle prestazioni in fase di compilazione compila in ram... ma ce ne vuole un po' :)
Back to top
View user's profile Send private message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Mon Nov 24, 2008 12:31 pm    Post subject: Reply with quote

.:deadhead:. wrote:
Io comincerei ad avere un sistema installato che faccia boot . Una volta poi che hai una shell andrai ad installare distcc ed eventualmente ad usarlo. CCACHE non è di grande aiuto IMHO. Certo è che devi valutare se l'overhead di metter in piedi distcc valga poi tutto sto ipotetico vantaggio in termini velocistici.


Non ho capito cosa intendi, installare distcc è una cosa molto veloce a quanto ricordo (non mi sembra abbia molte dipendenze), e comfigurarlo è facilissimo. Anche se ci fosse un piccolo guadagno meglio di niente, no?
Per quanto riguarda l'iterazione fra i due qualcuno sa qualcosa di preciso?
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Nov 24, 2008 12:46 pm    Post subject: Reply with quote

Guarda, ti segnalo un topic che tratta anche di crosscompilazione.
Io ho avuto dei problemi e li ho risolti grazie anche all'aiuto del forum.
_________________
[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
View user's profile Send private message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Mon Nov 24, 2008 8:44 pm    Post subject: Reply with quote

Dove trovo informazioni sulla compilazione in RAM? Ho due laptop con 4 giga ciascuno..
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Nov 24, 2008 9:23 pm    Post subject: Reply with quote

Devi compilare il supporto per il tmpfs nel kernel e prima di far partire un emerge fai:
Code:
mount -t tmpfs tmpfs -o size=4096M,mode=770 /var/tmp/portage

Una volta finito fai:
Code:
umount tmpfs

_________________
[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
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Tue Nov 25, 2008 7:14 pm    Post subject: Reply with quote

publiosulpicio wrote:
Dove trovo informazioni sulla compilazione in RAM? Ho due laptop con 4 giga ciascuno..


Io ne monto 1,5GB su 3, l'unica cosa che non riesco a compilare è openoffice.
La velocità comunque è decisamente superiore e il disco ringrazia :)
Back to top
View user's profile Send private message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Fri Dec 12, 2008 1:23 pm    Post subject: Reply with quote

È possibile integrare la compilazione in RAM con distcc? Compilando in RAM su entrmbi i computer. Grazie.
Ricky
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Fri Dec 12, 2008 3:55 pm    Post subject: Reply with quote

Non basta montare distccdir o come diavolo si chiama in tmpfs ed usare -pipe come cflag?
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Fri Dec 12, 2008 4:22 pm    Post subject: Reply with quote

djinnZ wrote:
Non basta montare distccdir o come diavolo si chiama in tmpfs ed usare -pipe come cflag?

Non ho capito, sul computer su cui lancio emerge tutto dovrebbe avvenire dentro /var/tmp/portage (credo che portage cambi distccdir in una sottocartella di /var/tmp/portage), ma sull'altro computer? Non ho idea di dove distcc mandi i file, anche se suppongo che la cartella che venga usata maggiormente, almeno da gcc, sia /tmp.
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