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 1PiSV1-0001Nc-7b for garchives@archives.gentoo.org; Thu, 27 Jan 2011 14:06:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2321E0ACE; Thu, 27 Jan 2011 14:05:26 +0000 (UTC) Received: from ksp.sk (element.ksp.sk [158.195.16.154]) by pigeon.gentoo.org (Postfix) with ESMTP id 845A2E0ACE for ; Thu, 27 Jan 2011 14:05:26 +0000 (UTC) Received: by ksp.sk (Postfix, from userid 1004) id 4FF804C19E; Thu, 27 Jan 2011 15:05:25 +0100 (CET) Date: Thu, 27 Jan 2011 15:05:25 +0100 From: YoYo Siska To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Simultaneously emerging multiple packages with same dependencies Message-ID: <20110127140525.GA4844@ksp.sk> References: <20110127100158.692bd251@digimed.co.uk> <4D416F12.8000202@gmail.com> 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: X-YoYo: 47 X-Exotic-Header-Data: 47/2 User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: X-Archives-Hash: c37ff32e279828996da56024c88a8b78 On Thu, Jan 27, 2011 at 03:33:21PM +0200, Nikos Chantziaras wrote: > On 01/27/2011 03:11 PM, Dale wrote: > >[...] > >I am using the -j option for the first time now. I'm updating KDE. It > >seems to work fine. It doesn't scroll all the stuff like with a regular > >emerges but this new rig is so fast, I can't read it anyway. I did have > >a package to fail and it spit out the error for me to read. > > You don't need that if you have MAKEOPTS set in your make.conf, > which is preferred. The -j option of emerge emerges multiple > packages, while with MAKEOPTS set to "-j4" or whatever does a > parallel build in the same package (meaning compiling multiple > source files at the same time). > > It's preferred because with "emerge -jN" the last package will only > use one CPU, while with "-jN" in MAKEOPTS even the last package will > use N CPUs. Furthermore, emerge can't always build N packages at > the same time because one can depend on the other, so it will have > to wait until the dependency is built. On the other hand, unpacking, configure and install stages are not parallel and emerge can do those in parallel for different packages... The best would be somewhere in the middle ;) There are also the load-average options to -j, i.e.: MAKEOPTS="-j -l5" emerge -j --load-average=5 .... which makes make spawn parallel processes while load average is below 5 and the same for emerge spawning parallel ebuilds (when make isn't parallel enough) yoyo