View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Nov 24, 2004 12:06 pm Post subject: distcc config questions |
|
|
I am trying to get my main gentoo system to help out on a new installation with distcc.
Well I have not got it working yet.
Two areas remain unclear after considerable reading :
Isnt distcc /etc/hosts aware? What's the point in naming machines and DHCP if we have to revert to hard coding IPs ?
What's the interplay with distcc-config and DISTCC_HOSTS ?
I read somewhere to use the former now if I add the latter I dont know which is effective. I'd like to centralise as much as poss in make.conf
Do I need distccd running on client as well? It seems logical that it runs on the servers and that I just configure the client to use distcc for it compiling, but I have seen some (non authoritative) threads say I should start distccd on the client.
Is that correct.
Thx. Gentree _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Last edited by Gentree on Thu Nov 25, 2004 6:14 pm; edited 1 time in total |
|
Back to top |
|
|
M@rijn Tux's lil' helper
Joined: 28 Jan 2004 Posts: 145 Location: Zierikzee (The Netherlands)
|
Posted: Wed Nov 24, 2004 12:39 pm Post subject: |
|
|
Compiling Xorg (Xfree), Mozilla and some other packages doesn't compile right using distcc _________________ Gentoo is just an Aston Martin, "Power, beauty and soul" |
|
Back to top |
|
|
Pat-rizio n00b
Joined: 05 Apr 2004 Posts: 69
|
Posted: Sat Nov 27, 2004 8:24 pm Post subject: |
|
|
This is my experience, I hope it helps.
If you want to use even your machine to compile you have to run distcc on your machine, so even you machine participate to compilation with priority equal to nice=-15. If you want to emerge a package compiling it only with remote hosts you have to run:
Code: | /etc/init.d/distccd start |
only on remote machines.
The first time you use distcc you have to create the file
where you have to put IP adresses of remote cpus which participate to compilation. Of course you can put in this file the names of these machine (which must be specified in /etc/resolv.conf).
The best way to generate this file is to launch:
Code: | distcc-config --set-host <first-IP> <second-IP> |
If you want you can create this file manualy (and modify it later if you want changing remote hosts). To monitor distcc work you can launch:
Code: | DISTCC_DIR=/var/tmp/portage/.distcc distccmon-gnome& |
To do this you have to emerge distcc with +gnome use-flag. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sun Nov 28, 2004 12:57 am Post subject: |
|
|
M@rijn wrote: | Compiling Xorg (Xfree), Mozilla and some other packages doesn't compile right using distcc |
Does that have anything to do with my qu?
@Pat-rizio
Thanks for your post . It seems from what you say that my config should have compiled by distcc ONLY on the remote host.
In fact it only compiles locally without distcc, I'll have to go over it again.
Tanks for your help. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Pat-rizio n00b
Joined: 05 Apr 2004 Posts: 69
|
Posted: Sun Nov 28, 2004 2:07 pm Post subject: |
|
|
Well, I'm glad to know my post helps you. Anyway, I'm not understand clearly which is you target now. Do you want to use your machine to help another one to make a compilation or just the contrary? |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sun Nov 28, 2004 3:10 pm Post subject: |
|
|
I have the newly installed , incomplete system xp-box that still has some big compilations to do.
I want it helped by linbox, my main Gentoo box , that is currently running distccd.
Thx _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Pat-rizio n00b
Joined: 05 Apr 2004 Posts: 69
|
Posted: Mon Nov 29, 2004 12:18 pm Post subject: |
|
|
Ok, so xp-box is the client and linbox the server (talking about distcc configuration).
If you insert in your /etc/distcc/hosts only linbox's IP, only linbox participate to packages' compilation (if the package can be distributed entirely).
Even if a package can be distributed entirely, be careful that the client do always a preprocessing step of the package that will be sent to the server, so there's a minimum cpu load of the client too.
If you insert even xp-box's IP in this file even xp-box will compile, in the order of IP adress. This means that the first IP is the first machine that partecipate to compilation, the second IP is the second IP and so on...
I hope this help. |
|
Back to top |
|
|
|