![]() |
distcc failing to compile
I've been making several attempts to get distcc working on my older Dell Latitude C800. It only has a 1ghz Pentium 3 Coppermine CPU and 512mb of ram. So I think it could really benefit from the efficiency of Gentoo, smaller and faster binaries, etc., but the compiling usually is taking too long. Especially when I'll need to rebuild the entire system or run revdamp-rebuild.
I have a desktop with a 2.8ghz quad core and 4GB ram, so I am attempting to use it to do the compiling. Last time I had Gentoo on the desktop, it compiled extremely fast, but I don't think the extra performance of Gentoo was so noticeable on it because it's already a fairly high end computer. So on both machines, I've set: Code:
export DISTCC_LOG=/var/log/distccd.log/var/log/distccd.log: http://vpaste.net/PWrNQ Laptop LAN IP: 192.168.1.117 Desktop LAN IP: 192.168.1.127 On the laptop, I've Code:
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"I have done distcc-config --set-host "192.168.1.127" and the /etc/distcc/hosts shows that ip in there, that it had been set. In the make.conf, I set Code:
FEATURES="distcc"Code:
/etc/init.d/distccd restartOn the desktop, I've Code:
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"Code:
export DISTCC_LOG=/var/log/distccd.logset in the /etc/make.conf Code:
FEATURES="distcc"Code:
/etc/init.d/distcc start================== Both computers have the same distcc version. On the laptop, I had to upgrade the gcc version to Code:
beastlinux ~ # gcc -v 2>&1 | tail -1CHOST in make.conf on both machines is the same Code:
CHOST="i686-pc-linux-gnu"EDIT: It seems be working now. According to logs, messages like these: Code:
distcc[4938] (dcc_r_file_timed) 3148 bytes received in 0.000477s, rate 6445kB/sThe distcc monitor apps distccmon-text, distccmon-gui, distccmon-gnome do not work. None of them have displayed a single message about the distcc helping with the compiling. |
The distccmon-* doesn't show anything when running emerge. When you compile a kernel you will see some output there. Also, not all packages use distcc. If the package is small, it will be compiled locally. Also the -j8 may be overkill for the laptop. If the package doesn't utilize distcc, the laptop will end up trying to compile with 8 threads, which will result in a huge load avg. I personally use (# of cores on the local host) + (# of distcc hosts) + 2. But I don't have a pc with more than 2 cores, so I can't be sure.
I think you can choose a different apcroach. You can compile the packages on the desktop and then export the distfiles to the laptop. But I don't have any experience on that field. |
Quote:
Quote:
http://img6.imagebanana.com/img/5so0...llRunningO.png Quote:
Quote:
Quote:
I just asked why my distcc was not working, not all that. I ended up solving it on my own (you can see in the screenshots, it is working), so I'll mark this thread as solved. |
Well, I have never seen any output on distccmon, but I don't run it always. Maybe it's something I misconfigured.
Anyway, it's good you figured it out. :) |
Here's how you get output on distccmon-gui or distccmon-text.
Create /etc/env.d/99local Add these three lines to it. DISTCC_VERBOSE=1 DISTCC_LOG="/var/log/distccd.log" DISTCC_DIR="/var/tmp/portage/.distcc" env-update && source /etc/profile Btw, I read about creating this file under /etc/env.d/99local on the Gentoo Handbook, so it's supported, not a hack. |
| All times are GMT -5. The time now is 05:27 PM. |