From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 47C96138CC5 for ; Wed, 25 Mar 2015 05:21:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E97D3E0856; Wed, 25 Mar 2015 05:20:59 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id CE114E0851 for ; Wed, 25 Mar 2015 05:20:58 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFxIwz/2dsb2JhbAA3gVOhb4EIgXUBAQQBOhwoCwshExIPBSU3iACiEYt1AwUFAQMIDAQBAgISEAgCAgKDXgM8glFjBI1Vh2GFbYhAhFg X-IPAS-Result: AgUFAGvvdVRFxIwz/2dsb2JhbAA3gVOhb4EIgXUBAQQBOhwoCwshExIPBSU3iACiEYt1AwUFAQMIDAQBAgISEAgCAgKDXgM8glFjBI1Vh2GFbYhAhFg X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114509037" Received: from 69-196-140-51.dsl.teksavvy.com (HELO waltdnes.org) ([69.196.140.51]) by ironport2-out.teksavvy.com with SMTP; 25 Mar 2015 01:20:57 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Wed, 25 Mar 2015 01:20:57 -0400 From: "Walter Dnes" Date: Wed, 25 Mar 2015 01:20:57 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code? Message-ID: <20150325052057.GA21520@waltdnes.org> References: <20150319015612.GA7416@waltdnes.org> <20150324071754.GB8371@waltdnes.org> <2298234.x3bRHs3aKg@navi> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2298234.x3bRHs3aKg@navi> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: e2050f26-ee49-4d9d-9036-2733aedafe40 X-Archives-Hash: ef74d4c79ebeadcac422eaca87099c38 On Tue, Mar 24, 2015 at 03:01:14PM -0400, Fernando Rodriguez wrote > Let me know if you have any luck with pump mode, I didn't. IIRC it sort of > worked but most compiles fell back to compiling locally so it's was actually > slower. It appears to be working. It took a couple of tries to get it going. That final required change was to /etc/distcc/hosts on the client. Apparently the required syntax for pump mode is like so 192.168.123.251,cpp,lzo where 192.168.123.251 is the host. "cpp" enables pump mode, and "lzo" (for compression) is also required. I originally ran... emerge -pv --changed-use --deep --update @world ...on the client. Things looked OK, so I ran pump emerge --changed-use --deep --update @world ...and let er rip. I don't have X fully functional on the client yet, so I switched to another text console on the client and ran (as per documentation). DISTCC_DIR="" distccmon-text 5 It spits out the occasional linefeed but no text. However, looking at tty12 on the *HOST* I see a bunch of stuff like... Mar 25 00:51:39 d531 distccd[22479]: (dcc_job_summary) client: 192.168.123.253:38023 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:1548ms i686-pc-linux-gnu-gcc /var/tmp/portage/dev-libs/glib-2.42.2/work/glib-2.42.2/gio/gdbusintrospection.c Mar 25 00:51:42 d531 distccd[22456]: (dcc_job_summary) client: 192.168.123.253:38024 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:930ms i686-pc-linux-gnu-gcc /var/tmp/portage/dev-libs/glib-2.42.2/work/glib-2.42.2/gio/gdbusmethodinvocation.c Mar 25 00:51:45 d531 distccd[22510]: (dcc_job_summary) client: 192.168.123.253:38025 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:1092ms i686-pc-linux-gnu-gcc /var/tmp/portage/dev-libs/glib-2.42.2/work/glib-2.42.2/gio/gdbusserver.c Mar 25 00:51:47 d531 distccd[22463]: (dcc_job_summary) client: 192.168.123.253:38026 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:299ms i686-pc-linux-gnu-gcc /var/tmp/portage/dev-libs/glib-2.42.2/work/glib-2.42.2/gio/gdbusinterface.c So it appears that the host is doing the grunt work. Text is scrolling on the screen of the Atom client just like a local build, but it's going by faster than I remember in the past. > The rest of this post (or parts) may not apply if you do get it > working. > > I've also found that I get better performance without the -l N on > MAKEPOTS and specifying the number of cores per host as follows: > > distcc-config --set-hosts "192.168.123.251/4" > > It may not matter if you got only one host. Also change the -j N flag > accordingly. You'll need to do some testing to find the right number, > I've find that between 4 to 8 cores per physical core works best (for > some reason varies between hosts). Just look for the right number, > you'll know when you see the CPU usage maxing on the hosts during a > parallel build. Keep in mind that most makefiles don't do a lot of > parallel compiling so you need to use the monitor utility to check > during a busy time. I already see an improvement. I have plenty of room for more speedup. CPU load on the host is stable around 0.30, so it's not being overloaded at all. > Also if you're using wireless and you can connect via ethernet do > that because you will see a LOT of traffic. I avoid wireless at home... 1) I live in a condominium, and all channels are very busy from my neighbours. 2) The ancient Atom netbook only does 802.11 "a" and "b" so it's not that fast. -- Walter Dnes I don't run "desktop environments"; I run useful applications