From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QuuUZ-0007Ut-NY for garchives@archives.gentoo.org; Sat, 20 Aug 2011 22:58:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32C4121C0B7; Sat, 20 Aug 2011 22:58:07 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 98E6021C02D for ; Sat, 20 Aug 2011 22:56:29 +0000 (UTC) Received: by vws13 with SMTP id 13so4014342vws.40 for ; Sat, 20 Aug 2011 15:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=M5JKI4qXH0mS9ASZ6t1HK1BazRIfi2QLEGpXUWLJJt0=; b=J47cM0V/NvMP8eOHkqVxRDrBy2DZi9axNEWFNVyPBt5n5xAI6/XUz9W6EDJnbHb/6F a85qk6zKw+Hf8C2JqthVBhTyByCIlP38+Vh/BQf/+1hmAMwtio8GaG5rPwYmSzIohKyN kW4MwlAnLnm3NJNrbsA6sjGv3EiWlU4DbP184= Received: by 10.52.186.130 with SMTP id fk2mr790696vdc.343.1313880989085; Sat, 20 Aug 2011 15:56:29 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.52.160.1 with HTTP; Sat, 20 Aug 2011 15:56:08 -0700 (PDT) From: Paul Hartman Date: Sat, 20 Aug 2011 17:56:08 -0500 X-Google-Sender-Auth: laXcLAqkh95Jf-jFuQWKza3nxpo Message-ID: Subject: [gentoo-user] Hoping someone can help explain distcc to me To: Gentoo User Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: X-Archives-Hash: 628b766210f7bbedc049abe52648b9a7 Hi, I have a fast desktop computer and a slow laptop. Both are ~amd64 Gentoo. After some of the recent discussions about Gentoo on slow devices, I thought I'd dust off the laptop and try to bring it up to date. I'd like to use distcc to make the desktop do all the compiling during emerges. I've never been able to get distcc working properly, or, at least, I've never been able to get it working to the point where using distcc is any faster than not using it at all. Desktop: 192.168.0.100 Laptop: 192.168.0.107 My goal is to just don't use the laptop at all. Do all compiling on the desktop. So far, while it appears to be working (some things are being compiled on the desktop, a very insignificant amount -- CPU usage on the desktop is basically 0% during emerges on the laptop), compile times are no better than just compiling everything on the laptop. The laptop still has 100% CPU activity during emerges. I realize the laptop is still going to do work during emerges, but thought at least distcc might be able to help offload most of the heavy part (the compiling). Both machines contain "distcc" in FEATURES. It's not using -march=native. I've tried various -jN values with no real difference in performance. On the desktop, /etc/conf.d/distcc contains (among other things): DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24" DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.100" And /etc/distccd/hosts contains: 192.168.0.0/24 On the laptop, /etc/conf.d/distcc contains (among other things): DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24" DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.107" And /etc/distccd/hosts contains: 192.168.0.100 Does anyone know any tricks or can tell me if I'm doing something wrong? How much of a speed-up should I realistically expect? Should distcc be able to exploit the fast machine to the fullest of its abilities? Thanks