michael higgins wrote:
> On Thu, 16 Jun 2005 14:08:46 -0700
> Zac Medico <[EMAIL PROTECTED]> wrote:
>
>
>>michael higgins wrote:
>>
>>>I have a couple of questions about using distcc. I have two machines. One is
>>>significantly faster than the other, both x86 (pentium 2 and amd athlon-xp).
>>>
>
>
> First, a big thanks to all who replied.
>
>
>>>I've followed the http://www.gentoo.org/doc/en/distcc.xml instructions for
>>>configuring portage to use distcc. Should I need to continue with the
>>>instructions for "working with automake"?
>>>
>>
>>Portage does this automatically as long as you have the corresponding
>>FEATURES enabled.
>>
>
>
> This is what I was hoping to hear.
>
>
>>>Also, how do I tell the faster machine to just use it's own power and not
>>>attempt to use the slower one?
>>>
>>
>>When you run distcc-config --set-hosts on the faster machine you want to
>>exclude the slower machine.
>>
>>
>>>I tried so far, getting distccd running on both machines, each distcc-config
>>>--set-hosts has one IP entry, that of the other machine. Is this right?
>>>
>>
>>You may want to include localhost.
>
>
> Interesting... I wonder why?
>
Well, sometimes you may not want to include localhost. Maybe it has enough
load already.
>
>>>I ran distcc-gnome and saw no activity reported on the faster machine when
>>>emerging something on the slower one. So, it would seem it's not working.
>>>
>>>Can anyone give me some hints? The manpage for distcc doesn't seem (to me)
>>>to be much related to the gentoo how-to... '-)
>>>
>>>TIA,
>>>
>>
>>#!/bin/bash
>>source /etc/make.globals
>>source /etc/make.conf
>>export DISTCC_DIR="${PORTAGE_TMPDIR}/portage/.distcc"
>>exec /usr/bin/distccmon-gnome
>>
>
>
> So, I just installed a package on the faster machine. It did try to use
> another, but found none and compiled locally, but spit out an error. Maybe
> adding localhost will fix this?
>
If the faster machine isn't going to use any distcc nodes (other than
localhost) then you should remove distcc from FEATURES.
> I tried emerging the same package on the slower machine and running this
> script above. Nothing came up in it. However, I noticed that each time the
> compiler went to run something, there was network activity. 'top' on the
> faster machine showed distccd working and launching the compiler, afaict.
>
You can enable logging in /etc/conf.d/distccd.
> So, I have to wonder if/why the monitors don't work for me...
>
export DISTCC_DIR="${PORTAGE_TMPDIR}/portage/.distcc" works for me. Maybe it
will help if you use "lsof" to find out what files distcc has open.
> Next time I'll just set the debug level and log location to see what actually
> happened.
>
> Thanks again, foax.
>
>
--
[email protected] mailing list