Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc config questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Wed Nov 24, 2004 12:06 pm    Post subject: distcc config questions Reply with quote

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 8)
_________________
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
View user's profile Send private message
M@rijn
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2004
Posts: 145
Location: Zierikzee (The Netherlands)

PostPosted: Wed Nov 24, 2004 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pat-rizio
n00b
n00b


Joined: 05 Apr 2004
Posts: 69

PostPosted: Sat Nov 27, 2004 8:24 pm    Post subject: Reply with quote

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
Code:
/etc/distcc/hosts
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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Nov 28, 2004 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Pat-rizio
n00b
n00b


Joined: 05 Apr 2004
Posts: 69

PostPosted: Sun Nov 28, 2004 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Nov 28, 2004 3:10 pm    Post subject: Reply with quote

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 8)
_________________
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
View user's profile Send private message
Pat-rizio
n00b
n00b


Joined: 05 Apr 2004
Posts: 69

PostPosted: Mon Nov 29, 2004 12:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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