Gentoo Archives: gentoo-user

From: victor romanchuk <rom@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Hoping someone can help explain distcc to me
Date: Sun, 21 Aug 2011 01:36:29
In Reply to: [gentoo-user] Hoping someone can help explain distcc to me by Paul Hartman
1 > Both machines contain "distcc" in FEATURES. It's not using
2 > -march=native. I've tried various -jN values with no real difference
3 > in performance.
5 only client (your laptop) machine should be distcc featured. for server
6 (desktop) that feature is useless
8 > On the desktop, /etc/conf.d/distcc contains (among other things):
10 > DISTCCD_OPTS="${DISTCCD_OPTS} --listen"
12 this is server distcc daemon configuration, one just instructs daemon on what
13 network interface to listen for incoming connections (interface with ip
14 in your case) and filter incoming distcc connections by source
15 address: allow only those coming from local network machines with ip addresses
16 to
18 then distccd have to be started: /etc/init.d/distccd start
20 > And /etc/distccd/hosts contains:
21 >
23 this file configures distcc client behavior (actually the configuration can be
24 complex, see distcc man page for details), but in trivial case (for home
25 computing) it might look like:
29 e.g the client is able to send up to 6 distcc jobs to and limit to
30 one job at local machine. client's /etc/make.conf has to have distcc feature
31 enabled (FEATURES="distcc"). surely you can play with job distribution rules
32 around the network. `distcc --show-hosts` command displays what you configured.
33 the number of cuncurrently running jobs (-j flag) has to be not less than sum of
34 local and remote jobs
36 i had noticed that distcc is peevish about CFLAGS: these should be compatible on
37 both client and server. in my case i made these similar on both machines (laptop
38 is core2duo and desktop is core2quad; both are running amd64 arch)
40 yet another way to install packages on weak notebook running it on the same arch
41 as desktop runs, - is to create binaries at powerful machine (while emerging or
42 with quickpkg utility) and share $PKGDIR with laptop
44 hth


Subject Author
Re: [gentoo-user] Hoping someone can help explain distcc to me Alex Schuster <wonko@×××××××××.org>