View previous topic :: View next topic |
Author |
Message |
publiosulpicio Apprentice
Joined: 31 Aug 2008 Posts: 150
|
Posted: Sun Nov 23, 2008 5:58 pm Post subject: Distcc e ccache durante installazione |
|
|
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 |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
|
IlGab Guru
Joined: 26 Nov 2004 Posts: 486
|
Posted: Mon Nov 24, 2008 12:30 pm Post subject: |
|
|
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 |
|
|
publiosulpicio Apprentice
Joined: 31 Aug 2008 Posts: 150
|
Posted: Mon Nov 24, 2008 12:31 pm Post subject: |
|
|
.: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 |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
publiosulpicio Apprentice
Joined: 31 Aug 2008 Posts: 150
|
Posted: Mon Nov 24, 2008 8:44 pm Post subject: |
|
|
Dove trovo informazioni sulla compilazione in RAM? Ho due laptop con 4 giga ciascuno.. |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
IlGab Guru
Joined: 26 Nov 2004 Posts: 486
|
Posted: Tue Nov 25, 2008 7:14 pm Post subject: |
|
|
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 |
|
|
publiosulpicio Apprentice
Joined: 31 Aug 2008 Posts: 150
|
Posted: Fri Dec 12, 2008 1:23 pm Post subject: |
|
|
È possibile integrare la compilazione in RAM con distcc? Compilando in RAM su entrmbi i computer. Grazie.
Ricky |
|
Back to top |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Fri Dec 12, 2008 3:55 pm Post subject: |
|
|
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
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
publiosulpicio Apprentice
Joined: 31 Aug 2008 Posts: 150
|
Posted: Fri Dec 12, 2008 4:22 pm Post subject: |
|
|
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 |
|
|
|